s4-provision: cope with umask in creating private/dns
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 09:20:11 +0000 (20:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 10:04:14 +0000 (21:04 +1100)
source4/scripting/python/samba/provision.py

index d0bc32340311747f9c5521f44440fbfea0ff6dde..86f1d9cb0704051586bfce43e44173df4496f4e2 100644 (file)
@@ -1524,6 +1524,8 @@ def create_zone_file(message, paths, setup_path, dnsdomain,
         pass
 
     os.mkdir(dns_dir, 0770)
+    # chmod needed to cope with umask
+    os.chmod(dns_dir, 0770)
 
     if paths.bind_gid is not None:
         try: