From: blogic 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: http://207.154.207.93/?a=commitdiff_plain;h=12bae65d07d29854204715cebc1ef1eae237fd9b;p=openwrt.git base-files: the USERID code path did not check for duplicate groups Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42919 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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=$?