From 5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Oct 2014 19:01:05 +0000 Subject: [PATCH] base-files: the USERID code path did not check for duplicate groups Signed-off-by: John Crispin SVN-Revision: 42919 --- package/base-files/files/lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=$?