diff options
author | John Crispin <blogic@openwrt.org> | 2014-10-14 19:01:05 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-14 19:01:05 +0000 |
commit | 2897186939af9752fdf67dad0d2f8aa88558702c (patch) | |
tree | f6609c509beeb40a4e05e1d604708c87b1f45c0d /package/base-files | |
parent | d8bd66f63059059e53e2164d07cf9b9af4c1f3aa (diff) | |
download | upstream-2897186939af9752fdf67dad0d2f8aa88558702c.tar.gz upstream-2897186939af9752fdf67dad0d2f8aa88558702c.tar.bz2 upstream-2897186939af9752fdf67dad0d2f8aa88558702c.zip |
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
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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=$? |