projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f0e3d
)
[HAVE_LSTAT_EMPTY_STRING_BUG]: Define lstat to rpl_lstat and declare the latter.
author
Jim Meyering
<jim@meyering.net>
Sun, 8 Nov 1998 03:38:06 +0000
(
03:38
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 8 Nov 1998 03:38:06 +0000
(
03:38
+0000)
src/remove.c
patch
|
blob
|
history
diff --git
a/src/remove.c
b/src/remove.c
index
e35c1e3
..
a3567ad
100644
(file)
--- 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