projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] busybox: update to v1.13.4 (closes: #4279)
[openwrt-10.03/.git]
/
package
/
busybox
/
patches
/
250-ash_export-n.patch
diff --git
a/package/busybox/patches/250-ash_export-n.patch
b/package/busybox/patches/250-ash_export-n.patch
index 0ab8fa21596f12fef04ce45f11fbc9698bf9885f..71697b116e8aef634816dd326d1ca672208d92bf 100644
(file)
--- a/
package/busybox/patches/250-ash_export-n.patch
+++ b/
package/busybox/patches/250-ash_export-n.patch
@@
-1,9
+1,9
@@
--- a/shell/ash.c
+++ b/shell/ash.c
--- a/shell/ash.c
+++ b/shell/ash.c
-@@ -1
1909,8 +11909,17 @@
+@@ -1
2159,8 +12159,17 @@ exportcmd(int argc UNUSED_PARAM, char **
const char *p;
char **aptr;
const char *p;
char **aptr;
- int flag = argv[0][0] == 'r'? VREADONLY : VEXPORT;
+ int flag = argv[0][0] == 'r'
? VREADONLY : VEXPORT;
+ int mask = ~0;
+ int nopt;
+ while ((nopt = nextopt("np"))) {
+ int mask = ~0;
+ int nopt;
+ while ((nopt = nextopt("np"))) {
@@
-19,7
+19,7
@@
aptr = argptr;
name = *aptr;
if (name) {
aptr = argptr;
name = *aptr;
if (name) {
-@@ -1
1922,10 +11931,12 @@
+@@ -1
2172,10 +12181,12 @@ exportcmd(int argc UNUSED_PARAM, char **
vp = *findvar(hashvar(name), name);
if (vp) {
vp->flags |= flag;
vp = *findvar(hashvar(name), name);
if (vp) {
vp->flags |= flag;