base-files: the USERID code path did not check for duplicate groups

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42919 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
John Crispin
2014-10-14 19:01:05 +00:00
parent d8bd66f630
commit 2897186939

View File

@@ -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=$?