openwrt/package/utils/busybox/patches
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
..
001-init_avoid_loop_opening_tty.patch
002-passwd_use_md5_hash_by_default_like_it_used_to_be.patch
003-brctl_show_fix.patch
004-upstream-percent_decode_in_place.patch
005-resource_h_include.patch
006-upstream_CVE-2011-2716_fixes.patch
007-upstream_mkfs_ext2_fixes.patch
110-wget_getopt_fix.patch
140-trylink_bash.patch
141-gen_build_files_bash.patch
150-no_static_libgcc.patch
200-etc_crontabs.patch
240-udhcpc_retries.patch
241-udhcpc-oversized_packets.patch
242-udhcpc_msgs.patch
243-udhcpc_changed_ifindex.patch
244-udhcpc_add_6rd_option.patch
250-ash_export-n.patch busybox: fix existing "export -n" in ash 2014-03-20 14:14:30 +00:00
251-ash_fix-redir-substitution.patch
260-vconfig_proc.patch
300-netmsg.patch
310-passwd_access.patch
340-lock_util.patch
350-httpd_redir.patch
410-httpd_cgi_headers.patch
440-httpd_chdir.patch
470-insmod_search.patch
490-mount_disable_check.patch
510-awk_include.patch
524-udhcpc_renew.patch
610-ntpd_delayed_resolve.patch
611-upstream_ntpd_version_fix.patch
700-hexdump_segfault_fix.patch
802-brctl_linux24.patch
902-telnetd_intr.patch
910-insmod-q-flag.patch
911-date-k-flag.patch
920-portability.patch
950-partial-checksum.patch
998-arping_missing_includes.patch
999-musl-fixes.patch