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):
if alter_user:
slapsoft.create()
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)
# Speed hack:
......@@ -519,7 +519,7 @@ class Partition(object):
os.mkdir(self.path, 0750)
if alter_user:
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)
......
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