Mail Archives: cygwin-developers/1998/08/24/20:30:34
The following patch fixes a problem in ash where trying to do cd //c/tmp
would fail with "cd: lstat /c failed". (I sent this to
gnu-win32 AT cygnus DOT com, but it may have been missed).
Without this patch I found that some configure scripts would fail with the
lstat message. I didn't worry about it after I had replace /bin/sh.exe with
/bin/bash.exe, but I guess it would be good if ash could be used for
running configure more reliably.
The patch has to be applied to the 0.2 ash source code (from the file
ash-linux-0.2.tar.gz in the cygnus b19 download directory).
diff -upr ash-linux-0.2.original/Makefile ash-linux-0.2/Makefile
--- ash-linux-0.2.original/Makefile Wed Nov 19 21:16:42 1997
+++ ash-linux-0.2/Makefile Thu Aug 06 21:53:10 1998
@@ -14,7 +14,7 @@ OBJ2 = builtins.o cd.o dirent.o bltin/ec
OBJS = $(OBJ1) $(OBJ2)
-CFLAGS = -O3 -mpentium -pipe -DSHELL -I/usr/include/bsd -I.
+CFLAGS = -O3 -mpentium -DSHELL -I/usr/include/bsd -I.
LDFLAGS = -s
CLEANFILES =\
diff -upr ash-linux-0.2.original/cd.c ash-linux-0.2/cd.c
--- ash-linux-0.2.original/cd.c Wed Nov 19 21:43:16 1997
+++ ash-linux-0.2/cd.c Thu Aug 06 21:52:58 1998
@@ -159,7 +159,7 @@ docd(dest, print)
top:
cdcomppath = dest;
STARTSTACKSTR(p);
- if (*dest == '/') {
+ while (*dest++ == '/') {
STPUTC('/', p);
cdcomppath++;
}
--- end of diff ---
- Raw text -