diff options
author | Greg McGary <greg@mcgary.org> | 1997-04-18 06:36:13 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1997-04-18 06:36:13 +0000 |
commit | f7fbb00cfa697cd1a47def573df65dd4d326c742 (patch) | |
tree | eda6aec5ae8de93a0d90dfe3e05d0c09d0e4cb8b /filenames.c | |
parent | 9da09030255feafece5f9d87617a64d5c66ede6f (diff) | |
download | idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.gz idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.bz2 idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.zip |
imported from mkid-3.0.5r3_0_5
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 |