From 2897186939af9752fdf67dad0d2f8aa88558702c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Oct 2014 19:01:05 +0000 Subject: 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 --- package/base-files/files/lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files/lib') 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=$? -- cgit v1.2.3