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:
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user