summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-02 20:39:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-02 20:39:31 +0000
commit6f87b0f80244d2e05ce0b51831530f6d4e5bfb6b (patch)
tree2224a99b52fab646f0660420f9adc3bb40c76ed2 /src
parent2ba501377b8516fb361196a26edc0c922a2b34ba (diff)
downloadbcfg2-6f87b0f80244d2e05ce0b51831530f6d4e5bfb6b.tar.gz
bcfg2-6f87b0f80244d2e05ce0b51831530f6d4e5bfb6b.tar.bz2
bcfg2-6f87b0f80244d2e05ce0b51831530f6d4e5bfb6b.zip
Attempted partial fix for AIX fallback issue
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3407 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/POSIX.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index 9908f3696..1cc448782 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -95,7 +95,11 @@ class POSIX(Bcfg2.Client.Tools.Tool):
except (OSError, KeyError):
self.logger.error('User/Group resolution failed for path %s' % (entry.get('name')))
owner = 'root'
- group = 'root'
+ try:
+ grp.getgrnam('root')
+ group = 'root'
+ except KeyError:
+ group = 'system'
finfo = os.stat(entry.get('name'))
perms = oct(finfo[ST_MODE])[-4:]
if entry.get('mtime', '-1') != '-1':