From: John Crispin Date: Tue, 14 Oct 2014 19:01:05 +0000 (+0000) Subject: base-files: the USERID code path did not check for duplicate groups X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a;p=librecmc%2Flibrecmc.git base-files: the USERID code path did not check for duplicate groups Signed-off-by: John Crispin SVN-Revision: 42919 --- diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 6f22dd013a..b88d4d6217 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -193,7 +193,7 @@ default_postinst() { } gid=$id - [ -n "$gid" ] && group_add $name $gid + [ -n "$gid" ] && group_exists $name || group_add $name $gid [ -z "$gid" ] && { group_add_next $name gid=$?