--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- gensync +++ gensync @@ -34,10 +34,11 @@ ins = open("/etc/gensync/gensync.conf") for x in ins.readlines(): # Skip line if it's a comment or not well-formed - if x.find("=") == -1 or \ - (len(x) and x[0] == "#"): + if x.find(" = ") == -1 or \ + (len(x) and x[0] == "#") or \ + len(x.split()) != 3: continue - (attrib, value) = x.split() + (attrib, null, value) = x.split() value = value.strip().strip('"') if attrib == "rsync_timeout": self.rsync_timeout = value