Openwrt/package
John Crispin 666659fb31 default_postinst() fix wrong call of group_add
[base-files] default_postinst() fix wrong call of group_add
after 12bae65d07d29854204715cebc1ef1eae237fd9b group_add is
always called. shell scripting can be tricky...

wrong call:
[ -n "$gid" ] && group_exists $name || group_add $name $gid

this leads to a call of 'group_add' when $gid is emtpy, proof:

root@box:~ functionA() { echo A; }
root@box:~ functionB() { echo B; }
root@box:~ VAR=
root@box:~ [ -n "$VAR" ] && functionA || functionB
B
root@box:~ # functionB was called, but VAR is not filled
root@box:~ VAR=filled
root@box:~ [ -n "$VAR" ] && functionA || functionB
A

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42926
2014-10-15 17:55:13 +00:00
..
base-files default_postinst() fix wrong call of group_add 2014-10-15 17:55:13 +00:00
boot ar71xx: qihoo-c301: reset imageNtrynum after each successful boot. 2014-10-14 12:21:36 +00:00
devel binutils: fix build with gcc 4.9 2014-09-30 21:36:33 +00:00
firmware kernel: add staging r8188eu module (3.13) 2014-04-30 21:53:29 +00:00
kernel scripts: fix wrong usage of '==' operator 2014-10-14 12:21:11 +00:00
libs package: add libnetfilter-log. 2014-10-14 19:01:16 +00:00
network scripts: fix wrong usage of '==' operator 2014-10-14 12:21:11 +00:00
system procd: update to latest git 2014-10-14 15:53:05 +00:00
utils busybox: remove validation message from bootup 2014-10-02 19:47:33 +00:00
Makefile postinst trigger: the new postinst trigger broke IB 2014-09-16 11:56:19 +00:00