From 69d674705a5d831446fa982a4aaebe83181acc51 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 18 Apr 2009 15:35:22 +0000 Subject: * debian/patches/dir_acces_fix.patch: New patch, fixes ext2fs crashes. --- debian/patches/dir_acces_fix.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 debian/patches/dir_acces_fix.patch (limited to 'debian/patches/dir_acces_fix.patch') diff --git a/debian/patches/dir_acces_fix.patch b/debian/patches/dir_acces_fix.patch new file mode 100644 index 00000000..c87b3663 --- /dev/null +++ b/debian/patches/dir_acces_fix.patch @@ -0,0 +1,16 @@ +Index: libfshelp/perms-access.c +=================================================================== +RCS file: /cvsroot/hurd/hurd/libfshelp/perms-access.c,v +retrieving revision 1.2 +diff -u -p -r1.2 perms-access.c +--- libfshelp/perms-access.c 14 Jul 2008 22:38:13 -0000 1.2 ++++ libfshelp/perms-access.c 18 Apr 2009 15:28:45 -0000 +@@ -30,7 +30,7 @@ fshelp_access (struct stat *st, int op, + { + 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)); + 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