s4/scripting: py3 style 0o123 octal, not 0123
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 05:32:52 +0000 (18:32 +1300)
committerNoel Power <npower@samba.org>
Thu, 25 Oct 2018 19:45:58 +0000 (21:45 +0200)
this works with py2.6+ too.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
source4/scripting/devel/config_base

index e48d3a6ce1420bcb66961fcd25947fbf6485a13a..0d495c5091b9d150fbaffae6af2dc111f679e711 100755 (executable)
@@ -26,7 +26,7 @@ config_dir  = prefix + "/etc"
 config_file = config_dir + "/smb.conf"
 
 if not os.path.isdir(config_dir):
-    os.makedirs(config_dir, mode=0755)
+    os.makedirs(config_dir, mode=0o755)
 if not os.path.isfile(config_file):
     open(config_file, mode='w').close()