From 4451579fdc486cb862632d960ef29303a342ce6d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 3 Oct 2023 18:13:54 +0200 Subject: [PATCH] euidaccess: Reject trailing slashes on symlinks to non-directories. * modules/euidaccess (Depends-on): Add access. --- ChangeLog | 3 +++ modules/euidaccess | 1 + 2 files changed, 4 insertions(+) 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] -- 2.39.5