Mercurial > emacs
changeset 11886:c5db1295f7df
* etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
former gives the true path even in the presence of simlinks.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Tue, 23 May 1995 15:40:31 +0000 |
parents | c686f5539749 |
children | cccb62a4bac6 |
files | lib-src/etags.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;