openwrtv4/package/utils
Felix Fietkau 33ae9569a4 busybox: fix existing "export -n" in ash
Minor fix to existing patch which did not correctly implement -n support for the export command in ash. The VEXPORT flag of a variable was set in the first call to setvareq() and then remained set in the subsequent call, because the variable already existed in the environment.

Although /lib/functions.sh by default does not export variables (NO_EXPORT=1), this issue was leading to dirty environments.

Without this fix:
(ash) export A=1; export -n B=2; /bin/ash -c "echo \$A, \$B"
1, 2

With this fix:
(ash) export A=1; export -n B=2; /bin/ash -c "echo \$A, \$B"
1,

Signed-off-by: Christophe Lermytte <openwrt@lermytte.be>

SVN-Revision: 39968
2014-03-20 14:14:30 +00:00
..
admswconfig
busybox busybox: fix existing "export -n" in ash 2014-03-20 14:14:30 +00:00
e2fsprogs
fbtest
fuse
hostap-utils
jsonpath jsonpath: make output in non-export mode more shell friendly 2014-01-08 22:01:55 +00:00
lua
mdadm
mkelfimage
nvram
px5g
robocfg
spidev_test
usbmode usbmode: update usb-modeswitch-data version to 20131113 2014-01-17 21:45:55 +00:00
usbreset usbreset: fix possible access to uninitialized variable (#15041) 2014-02-23 23:42:12 +00:00
usbutils
util-linux
xfsprogs xfsprogs: move to submenu Filesystem 2013-11-17 16:14:58 +00:00