1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00

provision: Initialize uninitialized variables if "targetdir" is not

defined and there is no smb.conf file
This commit is contained in:
Kai Blin
2008-03-27 17:49:56 +01:00
parent 4ae4692bc6
commit 19c29f4738

View File

@@ -373,7 +373,10 @@ def load_or_make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrol
lockdir_line = "lock dir = " + os.path.abspath(targetdir)
default_lp.set("lock dir", os.path.abspath(targetdir))
else:
privatedir_line = "private_dir = " + default_lp.get("private dir")
lockdir_line = "lock dir = " + default_lp.get("lock dir")
sysvol = os.path.join(default_lp.get("lock dir"), "sysvol")
netlogon = os.path.join(sysvol, realm.lower(), "scripts")