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

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

SVN-Revision: 42919
This commit is contained in:
John Crispin 2014-10-14 19:01:05 +00:00
parent a08f4367c0
commit 5efe2e5e3c

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