www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/24/20:30:34

From: TYann AT vet DOT com DOT au (Trevor Yann)
Subject: Patch for ash
24 Aug 1998 20:30:34 -0700 :
Message-ID: <3.0.5.32.19980825104118.007f3890.cygnus.cygwin32.developers@mail.mel.cybec.com.au>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019