From 2cde09648cc9be18a1d857d994c270ca2e1b52c2 Mon Sep 17 00:00:00 2001
From: Ander Punnar <ander@kvlt.ee>
Date: Tue, 16 Apr 2019 14:15:48 +0300
Subject: [PATCH] __acl: check if getfacl is available

---
 cdist/conf/type/__acl/explorer/acl_is | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cdist/conf/type/__acl/explorer/acl_is b/cdist/conf/type/__acl/explorer/acl_is
index e2ae0932..bb1db89d 100755
--- a/cdist/conf/type/__acl/explorer/acl_is
+++ b/cdist/conf/type/__acl/explorer/acl_is
@@ -18,6 +18,12 @@
 # along with cdist. If not, see <http://www.gnu.org/licenses/>.
 #
 
+if ! command -v getfacl 2>/dev/null
+then
+    echo 'getfacl not available' >&2
+    exit 1
+fi
+
 if [ -e "/$__object_id" ]
 then
     getfacl "/$__object_id" 2>/dev/null \