summaryrefslogtreecommitdiffstats
path: root/filenames.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
commitf7fbb00cfa697cd1a47def573df65dd4d326c742 (patch)
treeeda6aec5ae8de93a0d90dfe3e05d0c09d0e4cb8b /filenames.c
parent9da09030255feafece5f9d87617a64d5c66ede6f (diff)
downloadidutils-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.c7
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