aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì1995-05-23 15:40:31 +0000
committerFrancesco Potortì1995-05-23 15:40:31 +0000
commit0f3940659449aa9e92480f7e4259b20a7639d50f (patch)
tree66eeaa0451815a230236b1e012b3d28e2ea3036a /lib-src
parenta504c8fa20e838fa77866005beb96699e86e152e (diff)
downloademacs-0f3940659449aa9e92480f7e4259b20a7639d50f.tar.gz
emacs-0f3940659449aa9e92480f7e4259b20a7639d50f.zip
* etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
former gives the true path even in the presence of simlinks.
Diffstat (limited to 'lib-src')
-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 9e9390c99c9..faf1c8654c3 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -32,7 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
32 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 32 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
33 */ 33 */
34 34
35char pot_etags_version[] = "@(#) pot revision number is 11.26"; 35char pot_etags_version[] = "@(#) pot revision number is 11.28";
36 36
37#define TRUE 1 37#define TRUE 1
38#define FALSE 0 38#define FALSE 0
@@ -3683,7 +3683,7 @@ etags_getcwd ()
3683 while (getcwd (path, bufsize) == NULL) 3683 while (getcwd (path, bufsize) == NULL)
3684 { 3684 {
3685 if (errno != ERANGE) 3685 if (errno != ERANGE)
3686 pfatal ("pwd"); 3686 pfatal ("getcwd");
3687 bufsize *= 2; 3687 bufsize *= 2;
3688 path = xnew (bufsize, char); 3688 path = xnew (bufsize, char);
3689 } 3689 }
@@ -3696,9 +3696,9 @@ etags_getcwd ()
3696 FILE *pipe; 3696 FILE *pipe;
3697 3697
3698 initbuffer (&path); 3698 initbuffer (&path);
3699 pipe = (FILE *) popen ("pwd 2>/dev/null", "r"); 3699 pipe = (FILE *) popen ("/bin/pwd 2>/dev/null", "r");
3700 if (pipe == NULL || readline_internal (&path, pipe) == 0) 3700 if (pipe == NULL || readline_internal (&path, pipe) == 0)
3701 pfatal ("pwd"); 3701 pfatal ("/bin/pwd");
3702 pclose (pipe); 3702 pclose (pipe);
3703 3703
3704 return path.buffer; 3704 return path.buffer;