From 997fdd8ac4e6066dbaa0926d58c3a33d2feeead9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philippe=20Gr=C3=A9goire?= <pg@pgregoire.xyz>
Date: Sun, 20 Aug 2017 15:13:01 -0400
Subject: [PATCH] fix typo in group entry extraction

---
 cdist/conf/type/__user/explorer/group | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdist/conf/type/__user/explorer/group b/cdist/conf/type/__user/explorer/group
index b95f3d01..5b9ab5c4 100755
--- a/cdist/conf/type/__user/explorer/group
+++ b/cdist/conf/type/__user/explorer/group
@@ -26,7 +26,7 @@ if [ -f "$__object/parameter/gid" ]; then
    if [ -x /usr/bin/getent ] || [ -x /bin/getent ]; then
       getent group "$gid" || true
    elif [ -f /etc/group ]; then
-      grep -E "^(${gid}|([^:]:){2}${gid}):" /etc/group || true
+      grep -E "^(${gid}|([^:]+:){2}${gid}):" /etc/group || true
    fi
 fi