From 1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Feb 2006 23:10:01 +0000 Subject: [PATCH] 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. --- lib/openat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/openat.c b/lib/openat.c index 764d475ff5..eb0eddebb3 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" -- 2.47.3