From 368997448307133359841b3febc74b1761e5128e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 28 Apr 2009 18:42:03 +0000 Subject: Really fix posixity of access(): only regular files should see their x bit checked for --- debian/patches/dir_acces_fix.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/patches/dir_acces_fix.patch b/debian/patches/dir_acces_fix.patch index c87b3663..d40a5a11 100644 --- a/debian/patches/dir_acces_fix.patch +++ b/debian/patches/dir_acces_fix.patch @@ -10,7 +10,7 @@ diff -u -p -r1.2 perms-access.c int gotit; if (idvec_contains (user->uids, 0)) - gotit = (op != S_IEXEC) || (st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)); -+ gotit = (op != S_IEXEC) || S_ISDIR(st->st_mode) || (st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)); ++ gotit = (op != S_IEXEC) || !S_ISREG(st->st_mode) || (st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)); else if (user->uids->num == 0 && (st->st_mode & S_IUSEUNK)) gotit = st->st_mode & (op << S_IUNKSHIFT); else if (!fshelp_isowner (st, user)) -- cgit v1.2.3