From 929ce4b074be66b54dbd11325409b8e78f7c8c9a Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 22 Aug 2006 20:06:04 -0400 Subject: [PATCH] --- yaml --- r: 33552 b: refs/heads/master c: a969fd5a4e162c4485ae8f3e49d674656a18fa36 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c52ef59b65a8..6f512f203718 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9167b0b9a0ab7907191523f5a0528e3b9c288e21 +refs/heads/master: a969fd5a4e162c4485ae8f3e49d674656a18fa36 diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index a6f64a98ac50..f7aabfeca033 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -486,8 +486,6 @@ struct file *open_exec(const char *name) if (!(nd.mnt->mnt_flags & MNT_NOEXEC) && S_ISREG(inode->i_mode)) { int err = vfs_permission(&nd, MAY_EXEC); - if (!err && !(inode->i_mode & 0111)) - err = -EACCES; file = ERR_PTR(err); if (!err) { file = nameidata_to_filp(&nd, O_RDONLY);