[BusyBox-cvs] CVS busybox/shell
CVS User andersen
andersen at codepoet.org
Fri Oct 8 08:15:00 UTC 2004
Update of /var/cvs/busybox/shell
In directory nail:/tmp/cvs-serv10030/shell
Modified Files:
ash.c
Log Message:
Hiroshi Ito writes:
ash
"unset OLDPWD; cd -" causes segmentation fault.
( OLDPWD is not set when sh is invoked from getty. )
patch against current CVS is attached.
--- /var/cvs/busybox/shell/ash.c 2004/09/08 10:01:07 1.106
+++ /var/cvs/busybox/shell/ash.c 2004/10/08 08:14:58 1.107
@@ -2316,6 +2316,7 @@
dest = bltinlookup(homestr);
else if (dest[0] == '-' && dest[1] == '\0') {
dest = bltinlookup("OLDPWD");
+ if ( !dest ) goto out;
flags |= CD_PRINT;
goto step7;
}
More information about the busybox-cvs
mailing list