]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include lstat.h, so that uses of lstat are converted
authorJim Meyering <jim@meyering.net>
Thu, 16 Feb 2006 23:10:01 +0000 (23:10 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 16 Feb 2006 23:10:01 +0000 (23:10 +0000)
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.

lib/openat.c

index 764d475ff562c366f8b7a86b6095f1070e7c4cbf..eb0eddebb342ba4459919cfe41769576b169d281 100644 (file)
@@ -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"