Re: [PATCH 3/8] faccessat: support "" and NULL file
Bruno Haible via Gnulib discussion list <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs |
|---|---|
| Organization | GNU |
| Message-ID | <25100944.ouqheUzb2q@nimes> |
Paul Eggert wrote:
> Also, do not call fstatat if
> LSTAT_FOLLOWS_SLASHED_SYMLINK, as there is no need in that case.
I think this change is not necessary, because it is already done in
m4/faccessat.m4:
if test $ac_cv_func_faccessat = no; then
...
else
case $gl_cv_func_lstat_dereferences_slashed_symlink in
*yes) ;;
*) REPLACE_FACCESSAT=1 ;;
esac
fi
In other words:
If HAVE_FACCESSAT is 1 and LSTAT_FOLLOWS_SLASHED_SYMLINK is not 1,
Gnulib does not define rpl_faccessat.
Bruno