diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-12-02 18:48:45 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-12-02 18:48:45 +0000 |
commit | 02872e0a57014cff0716a6fa09ff247e6347cd82 (patch) | |
tree | b607f4d897f46bb38406d4c090b319110a05259d /src/lib/Client/Toolset.py | |
parent | a62b7f6b84e4f76fb4f24876fe940b97a12361c3 (diff) | |
download | bcfg2-02872e0a57014cff0716a6fa09ff247e6347cd82.tar.gz bcfg2-02872e0a57014cff0716a6fa09ff247e6347cd82.tar.bz2 bcfg2-02872e0a57014cff0716a6fa09ff247e6347cd82.zip |
fix permission setting
(Logical change 1.155)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@691 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Toolset.py')
-rw-r--r-- | src/lib/Client/Toolset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py index 7c42232a2..390c560bd 100644 --- a/src/lib/Client/Toolset.py +++ b/src/lib/Client/Toolset.py @@ -220,7 +220,7 @@ class Toolset(object): try: chown(entry.get('name'), getpwnam(entry.get('owner'))[2], getgrnam(entry.get('group'))[2]) - chmod(entry.get('name'), entry.get('perms')) + chmod(entry.get('name'), calc_perms(S_IFDIR, entry.get('perms'))) except (OSError, KeyError): self.CondPrint('debug', 'Permission fixup failed for %s' % (entry.get('name'))) return False |