diff options
| -rw-r--r-- | trunk/src/gensync/ChangeLog | 2 | ||||
| -rwxr-xr-x | trunk/src/gensync/gensync | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/trunk/src/gensync/ChangeLog b/trunk/src/gensync/ChangeLog index 2739cd2..7ec2b86 100644 --- a/trunk/src/gensync/ChangeLog +++ b/trunk/src/gensync/ChangeLog @@ -4,6 +4,8 @@ <adam_ashley@softhome.net>, fixes #45079. * Fixed config dir scanning, suggested by burrelln@colorado.edu, fixes #47390. + * Applied config file parser fix by Mamoru KOMACHI <usata@gentoo.org>, + fixes #44777. 2004-02-08 Karl Trygve Kalleberg <karltk@gentoo.org> * Initial import diff --git a/trunk/src/gensync/gensync b/trunk/src/gensync/gensync index bfc9b93..493ccb8 100755 --- a/trunk/src/gensync/gensync +++ b/trunk/src/gensync/gensync @@ -39,7 +39,8 @@ class ConfigDefaults: if x.find("=") == -1 or \ (len(x) and x[0] == "#"): continue - (attrib, value) = x.split() + (attrib, value) = x.split('=') + attrib = attrib.strip().strip('"') value = value.strip().strip('"') if attrib == "rsync_timeout": self.rsync_timeout = value @@ -91,7 +92,8 @@ class SyncSource: if x.find("=") == -1 or \ (len(x) and x[0] == "#"): continue - attrib,value = x.split("=") + (attrib, value) = x.split("=") + attrib = attrib.strip().strip('"') value = value.strip().strip('"') if attrib == "id": self.id = value |
