diff options
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1998,6 +1998,9 @@ func_realpath (char *o, char **argv, const char *funcname UNUSED) const char *path = 0; int doneany = 0; unsigned int len = 0; +#ifndef HAVE_REALPATH + struct stat st; +#endif PATH_VAR (in); PATH_VAR (out); @@ -2012,7 +2015,7 @@ func_realpath (char *o, char **argv, const char *funcname UNUSED) #ifdef HAVE_REALPATH realpath (in, out) #else - abspath (in, out) + abspath (in, out) && stat (out, &st) == 0 #endif ) { |