summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 15:57:33 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 15:57:33 -0400
commitb2d11440759e79d8485a22ba71933b691ff749a4 (patch)
tree3c5c11e53a383f647d1b70c42cdd6def085c46ed /src/lib/Bcfg2/Client
parent5fa677d2170250fdf76236869536744e2b01074d (diff)
downloadbcfg2-b2d11440759e79d8485a22ba71933b691ff749a4.tar.gz
bcfg2-b2d11440759e79d8485a22ba71933b691ff749a4.tar.bz2
bcfg2-b2d11440759e79d8485a22ba71933b691ff749a4.zip
fix for missing ACL libs
Diffstat (limited to 'src/lib/Bcfg2/Client')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/base.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
index fe30d1a74..1ddfcc230 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
@@ -16,18 +16,20 @@ except ImportError:
try:
import posix1e
has_acls = True
+
+ # map between permissions characters and numeric ACL constants
+ acl_map = dict(r=posix1e.ACL_READ,
+ w=posix1e.ACL_WRITE,
+ x=posix1e.ACL_EXECUTE)
except ImportError:
has_acls = False
+ acl_map = dict()
# map between dev_type attribute and stat constants
device_map = dict(block=stat.S_IFBLK,
char=stat.S_IFCHR,
fifo=stat.S_IFIFO)
-# map between permissions characters and numeric ACL constants
-acl_map = dict(r=posix1e.ACL_READ,
- w=posix1e.ACL_WRITE,
- x=posix1e.ACL_EXECUTE)
class POSIXTool(Bcfg2.Client.Tools.Tool):
def fully_specified(self, entry):