summaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-11-08 03:38:06 +0000
committerJim Meyering <jim@meyering.net>1998-11-08 03:38:06 +0000
commit920680fe4fcd8accfbb8496a71684b0931cfda1c (patch)
treee174022498c5070b43d457c718ca17212db8c1f9 /src/remove.c
parentc9f0e3d34397d16875cabbf62d220f5c37aeb9ee (diff)
downloadcoreutils-920680fe4fcd8accfbb8496a71684b0931cfda1c.tar.xz
[HAVE_LSTAT_EMPTY_STRING_BUG]: Define lstat to rpl_lstat and declare the latter.
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remove.c b/src/remove.c
index e35c1e378..a3567ad1b 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -51,6 +51,13 @@ typedef enum {false = 0, true = 1} bool;
# endif
#endif
+/* On systems with an lstat function that accepts the empty string,
+ arrange to make lstat calls go through the wrapper function. */
+#if HAVE_LSTAT_EMPTY_STRING_BUG
+int rpl_lstat PARAMS((const char *, struct stat *));
+# define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf)
+#endif
+
#ifdef D_INO_IN_DIRENT
# define D_INO(dp) ((dp)->d_ino)
# define ENABLE_CYCLE_CHECK