summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-25 14:33:41 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-25 14:33:46 -0500
commitc51850b13f54d6f46e6c671e5ee1d3f0cacef727 (patch)
treed5992fb785822ee925fadb8056f9211062c6016c
parent74fd7a8e65ac9737a6ab39afa3378ca63fbe4e21 (diff)
downloadbcfg2-c51850b13f54d6f46e6c671e5ee1d3f0cacef727.tar.gz
bcfg2-c51850b13f54d6f46e6c671e5ee1d3f0cacef727.tar.bz2
bcfg2-c51850b13f54d6f46e6c671e5ee1d3f0cacef727.zip
POSIX: fixed test to only apply ACLs to non-symlinks
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
index 12f7f8a56..5fd3f2668 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
@@ -1,4 +1,4 @@
-""" Base class for tools that handle POSIX (Path) entries """
+git """ Base class for tools that handle POSIX (Path) entries """
import os
import sys
@@ -465,7 +465,7 @@ class POSIXTool(Bcfg2.Client.Tools.Tool):
else:
secontext = None
- if HAS_ACLS and not stat.S_ISLNK(ondisk):
+ if HAS_ACLS and not stat.S_ISLNK(ondisk[stat.ST_MODE]):
acls = self._list_file_acls(path)
else:
acls = None