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:
de1c8b2
)
ash: fix SEGV in forkchild (jp can be NULL). here documents were affected.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 18 Jul 2007 21:35:43 +0000
(21:35 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 18 Jul 2007 21:35:43 +0000
(21:35 -0000)
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 06c4698f91838556d4311d4d570b6d9e22a3eafe..32c440274f9f445a9ce53e9642f134daf5fb7b0d 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-4424,7
+4424,8
@@
forkchild(struct job *jp, union node *n, int mode)
#if JOBS
/* For "jobs | cat" to work like in bash, we must retain list of jobs
* in child, but we do need to remove ourself */
- freejob(jp);
+ if (jp)
+ freejob(jp);
#else
for (jp = curjob; jp; jp = jp->prev_job)
freejob(jp);