Package: samba4-common-bin
Version: 4.0.0~alpha19+dfsg1-3
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,
there is an error in /usr/share/samba/setoption.py line 35: re.match has only 1
argument instead of 2.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba4-common-bin depends on:
ii  python        2.7.2-10
ii  python-samba  4.0.0~alpha19+dfsg1-3
ii  samba-common  2:3.6.4-1

samba4-common-bin recommends no packages.

samba4-common-bin suggests no packages.

-- no debconf information
--- /usr/share/samba/setoption.py.orig	2012-04-16 18:01:34.000000000 +0300
+++ /usr/share/samba/setoption.py	2012-04-16 18:01:46.000000000 +0300
@@ -32,7 +32,7 @@
             outf.write("  %s = %s\n" % (key, value))
             done = True
         inglobal = (m.groups(1)[0] in ("global", "globals"))
-    elif inglobal and re.match(r"^(\s*)" + key + r"(\s*)=.*$"):
+    elif inglobal and re.match(r"^(\s*)" + key + r"(\s*)=.*$", l):
         l = re.sub(r"^(\s*)" + key + r"(\s*)=.*$",
                 r"\1" + key + r"\2=\2" + value, l)
         done = True

Reply via email to