summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-27 15:00:41 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-27 15:00:41 +0100
commit70b31610909544c58fd87c5e0aa00e02eb5f6d4b (patch)
tree510b7c67e0e2798f7e4355fe9c30b9a22463338d /source4
parent82adfa39b75aa628c88f828278c6ac09335d1a49 (diff)
downloadsamba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.tar.gz
samba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.tar.bz2
samba-70b31610909544c58fd87c5e0aa00e02eb5f6d4b.zip
s4:samba3.py - ignore comments in "smb.conf" files
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/samba3.py2
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])