aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:05 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:05 +0000
commit2897186939af9752fdf67dad0d2f8aa88558702c (patch)
treef6609c509beeb40a4e05e1d604708c87b1f45c0d /package/base-files
parentd8bd66f63059059e53e2164d07cf9b9af4c1f3aa (diff)
downloadupstream-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-xpackage/base-files/files/lib/functions.sh2
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=$?