summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2017-10-16 08:30:27 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2017-10-16 08:30:27 +0000
commit0e8ef7f48cf62030a73d1830d51336fd06045599 (patch)
tree516698c1c32f9ecd1b9d2993fce7412f07baee22
parenttextproc/html-xml-utils: Update to 7.3 (diff)
Skip comments when parsing GID_FILES
Reviewed by: bapt MFH: 2017Q4 Differential Revision: https://reviews.freebsd.org/D12682
-rw-r--r--Mk/Scripts/do-users-groups.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/do-users-groups.sh b/Mk/Scripts/do-users-groups.sh
index e45047fc65a3..a01f4b9ddf66 100644
--- a/Mk/Scripts/do-users-groups.sh
+++ b/Mk/Scripts/do-users-groups.sh
@@ -139,7 +139,7 @@ if [ -n "${USERS}" ]; then
/|/nonexistent|/var/empty)
;;
*)
- group=$(awk -F: -v gid=${gid} '$3 == gid { print $1 }' ${dp_GID_FILES})
+ group=$(awk -F: -v gid=${gid} '$1 !~ /^#/ && $3 == gid { print $1 }' ${dp_GID_FILES})
echo "${dp_INSTALL} -d -g $group -o $login $homedir" >> "${dp_UG_INSTALL}"
;;
esac