projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f6798
)
applying fix for:
author
Paul Fox
<pgf@brightstareng.com>
Wed, 20 Jul 2005 19:18:45 +0000
(19:18 -0000)
committer
Paul Fox
<pgf@brightstareng.com>
Wed, 20 Jul 2005 19:18:45 +0000
(19:18 -0000)
0000261
: Unsafe empty env var export in ash
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 045d659edcdc34d16a50937277b5d2573ce95ee1..8656c0219441c2991898a69410afe6d3ee0bfa45 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-12001,9
+12001,8
@@
setvar(const char *name, const char *val, int flags)
}
INTOFF;
p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen);
- *p++ = '
\0
';
+ *p++ = '
=
';
if (vallen) {
- p[-1] = '=';
p = mempcpy(p, val, vallen);
}
*p = '\0';