# HG changeset patch # User Francesco Potort # Date 801243631 0 # Node ID c5db1295f7df87551c2ce052e94936bb5ae6c99a # Parent c686f5539749af125342e04973c99060c613826e * etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the former gives the true path even in the presence of simlinks. diff -r c686f5539749 -r c5db1295f7df lib-src/etags.c --- a/lib-src/etags.c Tue May 23 03:04:22 1995 +0000 +++ b/lib-src/etags.c Tue May 23 15:40:31 1995 +0000 @@ -32,7 +32,7 @@ * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. */ -char pot_etags_version[] = "@(#) pot revision number is 11.26"; +char pot_etags_version[] = "@(#) pot revision number is 11.28"; #define TRUE 1 #define FALSE 0 @@ -3683,7 +3683,7 @@ while (getcwd (path, bufsize) == NULL) { if (errno != ERANGE) - pfatal ("pwd"); + pfatal ("getcwd"); bufsize *= 2; path = xnew (bufsize, char); } @@ -3696,9 +3696,9 @@ FILE *pipe; initbuffer (&path); - pipe = (FILE *) popen ("pwd 2>/dev/null", "r"); + pipe = (FILE *) popen ("/bin/pwd 2>/dev/null", "r"); if (pipe == NULL || readline_internal (&path, pipe) == 0) - pfatal ("pwd"); + pfatal ("/bin/pwd"); pclose (pipe); return path.buffer;