From: Bruno Haible Date: Tue, 3 Oct 2023 16:13:54 +0000 (+0200) Subject: euidaccess: Reject trailing slashes on symlinks to non-directories. X-Git-Tag: v1.0~744 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4451579fdc486cb862632d960ef29303a342ce6d;p=gnulib.git euidaccess: Reject trailing slashes on symlinks to non-directories. * modules/euidaccess (Depends-on): Add access. --- diff --git a/ChangeLog b/ChangeLog index 7a70e6ab9a..95c08b304e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-10-03 Bruno Haible + euidaccess: Reject trailing slashes on symlinks to non-directories. + * modules/euidaccess (Depends-on): Add access. + euidaccess: Add tests. * tests/test-access.h: New file, extracted from tests/test-access.c. * tests/test-access.c: Moved most code to tests/test-access.h. diff --git a/modules/euidaccess b/modules/euidaccess index b45cf358d1..627f2de96d 100644 --- a/modules/euidaccess +++ b/modules/euidaccess @@ -10,6 +10,7 @@ unistd extensions root-uid fcntl-h +access [test $HAVE_EUIDACCESS = 0] group-member [test $HAVE_EUIDACCESS = 0] stat [test $HAVE_EUIDACCESS = 0] sys_stat [test $HAVE_EUIDACCESS = 0]