From 731986ef8b417cdc0284ffd3b43c66a9bd851f55 Mon Sep 17 00:00:00 2001
From: Ander Punnar <ander@kvlt.ee>
Date: Tue, 16 Apr 2019 15:21:41 +0300
Subject: [PATCH] __acl: trying to understand X

---
 cdist/conf/type/__acl/gencode-remote | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/cdist/conf/type/__acl/gencode-remote b/cdist/conf/type/__acl/gencode-remote
index a50174fa..651bfce0 100755
--- a/cdist/conf/type/__acl/gencode-remote
+++ b/cdist/conf/type/__acl/gencode-remote
@@ -35,6 +35,16 @@ do
     fi
     while read -r l
     do
+        if echo "$l" | grep -Fq 'X'
+        then
+            if [ "$is_dir" = '1' ]
+            then
+                l="$( echo "$l" | sed 's/X/x/' )"
+            else
+                l="$( echo "$l" | sed 's/X/-/' )"
+            fi
+        fi
+
         echo "$parameter:$l"
 
         if [ -f "$__object/parameter/default" ] \