summaryrefslogtreecommitdiff
path: root/lib/openat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-02-16 23:10:01 +0000
committerJim Meyering <jim@meyering.net>2006-02-16 23:10:01 +0000
commit1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd (patch)
tree129c152cc3790e8ce9f778907e61e258ca2e7a09 /lib/openat.c
parentec2631dee1a3819237d7f2dd805243b178ba3555 (diff)
downloadcoreutils-1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd.tar.xz
Include lstat.h, so that uses of lstat are converted
to uses of rpl_lstat, e.g., on Solaris 9. Otherwise, programs like du (which now uses the openat-enabled fts and hence fstatat) would mistakenly fail to dereference a symlink-to-directory specified with a trailing slash.
Diffstat (limited to 'lib/openat.c')
-rw-r--r--lib/openat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/openat.c b/lib/openat.c
index 764d475ff..eb0eddebb 100644
--- a/lib/openat.c
+++ b/lib/openat.c
@@ -29,6 +29,7 @@
#include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
#include "fcntl--.h"
+#include "lstat.h"
#include "openat-priv.h"
#include "save-cwd.h"
#include "unistd--.h"