diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-27 15:00:41 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-27 15:00:41 +0100 |
commit | 70b31610909544c58fd87c5e0aa00e02eb5f6d4b (patch) | |
tree | 510b7c67e0e2798f7e4355fe9c30b9a22463338d /source4/scripting/python | |
parent | 82adfa39b75aa628c88f828278c6ac09335d1a49 (diff) | |
download | samba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.tar.gz samba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.tar.bz2 samba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.zip |
s4:samba3.py - ignore comments in "smb.conf" files
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/samba3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/samba3.py b/source4/scripting/python/samba/samba3.py index dff3671dbb..c21b457566 100644 --- a/source4/scripting/python/samba/samba3.py +++ b/source4/scripting/python/samba/samba3.py @@ -684,7 +684,7 @@ class ParamFile(object): section = None for i, l in enumerate(open(filename, 'r').xreadlines()): l = l.strip() - if not l: + if not l or l[0] == '#' or l[0] == ';': continue if l[0] == "[" and l[-1] == "]": section = self._sanitize_name(l[1:-1]) |