diff options
author | John Crispin <john@openwrt.org> | 2014-10-14 19:01:05 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-10-14 19:01:05 +0000 |
commit | 5efe2e5e3c2110ece5f19cc21cc3b4b31442b29a (patch) | |
tree | 7752529280fefa360a89836ed676f3ace477cd59 /package | |
parent | a08f4367c049fa8874bc7a215c94f1a8ebcb2a64 (diff) | |
download | upstream-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')
-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=$? |