diff options
Diffstat (limited to 'filenames.c')
-rw-r--r-- | filenames.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filenames.c b/filenames.c index 9a766ac..0b288d7 100644 --- a/filenames.c +++ b/filenames.c @@ -471,8 +471,15 @@ kshgetwd (char *pathname) /* By golly, that name is the same file as "." ! */ return strcpy (pathname, kshname); } + /* Oh well, something did not work out right, do it the hard way */ +#if HAVE_GETCWD + return getcwd (pathname, BUFSIZ); +#else +#if HAVE_GETWD return getwd (pathname); +#endif +#endif } /* unsymlink is a routine that resolves all symbolic links in |