aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì <[email protected]>1995-05-23 15:40:31 +0000
committerFrancesco Potortì <[email protected]>1995-05-23 15:40:31 +0000
commit0f3940659449aa9e92480f7e4259b20a7639d50f (patch)
tree66eeaa0451815a230236b1e012b3d28e2ea3036a
parenta504c8fa20e838fa77866005beb96699e86e152e (diff)
* etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
former gives the true path even in the presence of simlinks.
-rw-r--r--lib-src/etags.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 9e9390c99c..faf1c8654c 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -32,7 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
* Francesco Potorti` ([email protected]) 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 @@ etags_getcwd ()
while (getcwd (path, bufsize) == NULL)
{
if (errno != ERANGE)
- pfatal ("pwd");
+ pfatal ("getcwd");
bufsize *= 2;
path = xnew (bufsize, char);
}
@@ -3696,9 +3696,9 @@ etags_getcwd ()
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;