OSDN Git Service

Fix a segfault in lash, hush, and cmdedit. Each of these used
authorEric Andersen <andersen@codepoet.org>
Fri, 11 May 2001 16:58:46 +0000 (16:58 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 11 May 2001 16:58:46 +0000 (16:58 -0000)
commit5f265b755a92e7efdbd0d18694913209dfd9e055
treee6644e9f97dab0198ad771e1d330e02a7cce8553
parent9d94deabd398634c6d1c601ba276f5afd97b2050
Fix a segfault in lash, hush, and cmdedit.  Each of these used
xgetcwd, but did not check the return for a NULL, and then continued
to call strlen on the NULL when the cwd had been removed from under it.
 -Erik
Makefile
cmdedit.c
hush.c
include/libbb.h
lash.c
libbb/libbb.h
libbb/messages.c
shell/cmdedit.c
shell/hush.c
shell/lash.c