From: Jim Meyering Date: Thu, 16 Feb 2006 23:10:01 +0000 (+0000) Subject: Include lstat.h, so that uses of lstat are converted X-Git-Tag: v6.0~720 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd;p=thirdparty%2Fcoreutils.git 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. --- 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"