aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-14 19:01:05 +0000
committerJohn Crispin <john@openwrt.org>2014-10-14 19:01:05 +0000
commit5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a (patch)
tree7752529280fefa360a89836ed676f3ace477cd59 /package/base-files
parenta08f4367c049fa8874bc7a215c94f1a8ebcb2a64 (diff)
downloadupstream-5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a.tar.gz
upstream-5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a.tar.bz2
upstream-5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a.zip
base-files: the USERID code path did not check for duplicate groups
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42919
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=$?