summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2009-04-28 18:42:03 +0000
committerSamuel Thibault <sthibault@debian.org>2009-04-28 18:42:03 +0000
commit368997448307133359841b3febc74b1761e5128e (patch)
tree806144eb8201764ae360b0b371b4b00371f2bbc4
parent3b4df3f70160933f1ec51ef69858c3e12085b358 (diff)
Really fix posixity of access(): only regular files should see their x bit checked for
-rw-r--r--debian/patches/dir_acces_fix.patch2
1 files changed, 1 insertions, 1 deletions
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))