1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4-s3upgrade: Add my wins.dat and fix the parsing error

The issue was that the numbers at the end of the lines are space
padded.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2012-06-16 13:58:06 +10:00
parent d0b60f02dd
commit 61f7f01554
3 changed files with 27 additions and 1 deletions

View File

@ -304,7 +304,8 @@ def shellsplit(text):
if c == "\"":
inquotes = not inquotes
elif c in ("\t", "\n", " ") and not inquotes:
ret.append(current)
if current != "":
ret.append(current)
current = ""
else:
current += c