former gives the true path even in the presence of simlinks.
* 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
while (getcwd (path, bufsize) == NULL)
{
if (errno != ERANGE)
- pfatal ("pwd");
+ pfatal ("getcwd");
bufsize *= 2;
path = xnew (bufsize, char);
}
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;