From 7d0a480fe4033847c0ed31ba4673f1294ca075c7 Mon Sep 17 00:00:00 2001 From: karltk Date: Fri, 10 Sep 2004 09:39:47 +0000 Subject: [PATCH] Fixes #44777 svn path=/; revision=131 --- trunk/src/gensync/ChangeLog | 2 ++ 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 @@ , fixes #45079. * Fixed config dir scanning, suggested by burrelln@colorado.edu, fixes #47390. + * Applied config file parser fix by Mamoru KOMACHI , + fixes #44777. 2004-02-08 Karl Trygve Kalleberg * 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 -- 2.26.2