Commit d671e3d5 authored by Jean-Baptiste Petre's avatar Jean-Baptiste Petre Committed by Cédric de Saint Martin

Fix variable names used by chownDirectory() in slapformat.

parent 966e0bb6
...@@ -397,7 +397,7 @@ class Computer(object): ...@@ -397,7 +397,7 @@ class Computer(object):
if alter_user: if alter_user:
slapsoft.create() slapsoft.create()
slapsoft_pw = pwd.getpwnam(slapsoft.name) slapsoft_pw = pwd.getpwnam(slapsoft.name)
chownDirectory(path, uid, gid) chownDirectory(slapsoft.path, slapsoft_pw.pw_uid, slapsoft_pw.pw_gid)
os.chmod(self.software_root, 0755) os.chmod(self.software_root, 0755)
# Speed hack: # Speed hack:
...@@ -519,7 +519,7 @@ class Partition(object): ...@@ -519,7 +519,7 @@ class Partition(object):
os.mkdir(self.path, 0750) os.mkdir(self.path, 0750)
if alter_user: if alter_user:
owner_pw = pwd.getpwnam(owner.name) owner_pw = pwd.getpwnam(owner.name)
chownDirectory(path, uid, gid) chownDirectory(self.path, owner_pw.pw_uid, owner_pw.pw_gid)
os.chmod(self.path, 0750) os.chmod(self.path, 0750)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment