1 Index: busybox-1.7.2/shell/ash.c
2 ===================================================================
3 --- busybox-1.7.2.orig/shell/ash.c 2007-10-30 15:34:59.000000000 -0500
4 +++ busybox-1.7.2/shell/ash.c 2007-10-30 15:35:02.000000000 -0500
5 @@ -11310,8 +11310,18 @@
8 int flag = argv[0][0] == 'r'? VREADONLY : VEXPORT;
12 - if (nextopt("p") != 'p') {
13 + while ((nopt = nextopt("np"))) {
25 @@ -11323,10 +11333,11 @@
26 vp = *findvar(hashvar(name), name);
33 - setvar(name, p, flag);
34 + setvar(name, p, flag & mask);
35 } while ((name = *++aptr) != NULL);