[package] busybox: update to v1.12.4 (partially closes: #4279)
[openwrt-10.03/.git] / package / busybox / patches / 250-ash_export-n.patch
index 8243a505211b5c3411c365c56c88f374cca79411..50eaa62d0b9312e4e9dae68e7afa4059cd16d84f 100644 (file)
@@ -1,9 +1,9 @@
 --- a/shell/ash.c
 +++ b/shell/ash.c
-@@ -11875,8 +11875,17 @@
+@@ -12018,8 +12018,17 @@ exportcmd(int argc UNUSED_PARAM, char **
        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"))) {
@@ -19,7 +19,7 @@
                aptr = argptr;
                name = *aptr;
                if (name) {
-@@ -11888,10 +11897,12 @@
+@@ -12031,10 +12040,12 @@ exportcmd(int argc UNUSED_PARAM, char **
                                        vp = *findvar(hashvar(name), name);
                                        if (vp) {
                                                vp->flags |= flag;