summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2010-08-07 03:02:51 +0000
committerSol Jerome <sol.jerome@gmail.com>2010-08-11 15:59:58 -0500
commitf2f7aa8a83b244a509de30c2ef58766bb31c63f3 (patch)
treec0c0382e06b8a37c58d4262d1e3a492ed7d1225a /src
parent869537f3b703119ceb397b85ca38b4dff99b8d6b (diff)
downloadbcfg2-f2f7aa8a83b244a509de30c2ef58766bb31c63f3.tar.gz
bcfg2-f2f7aa8a83b244a509de30c2ef58766bb31c63f3.tar.bz2
bcfg2-f2f7aa8a83b244a509de30c2ef58766bb31c63f3.zip
debian: Merge in changes from Arto Jantunen
bcfg2.init: Remove agent mode (no longer exists) POSIX.py: Fix hardcoded errno value Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6005 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/POSIX.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index ac9059517..8fc07dd60 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -7,6 +7,7 @@ from stat import S_IWGRP, S_IRGRP, S_IXOTH, S_IWOTH, S_IROTH, ST_MODE, S_ISDIR
from stat import S_IFREG, ST_UID, ST_GID, S_ISREG, S_IFDIR, S_ISLNK, ST_MTIME
import binascii
import difflib
+import errno
import grp
import logging
import os
@@ -688,7 +689,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
return False
return True
except (OSError, IOError), err:
- if err.errno == 13:
+ if err.errno == errno.EACCES:
self.logger.info("Failed to open %s for writing" % (entry.get('name')))
else:
print(err)