Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 218343 Details for
Bug 303411
app-shells/bash: built-in "test -x" fails for root
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for built-in test -x failure for root
bash-4.0-fbsd-testx.patch (text/plain), 684 bytes, created by
Johan Hattne
on 2010-02-04 05:25:02 UTC
(
hide
)
Description:
Patch for built-in test -x failure for root
Filename:
MIME Type:
Creator:
Johan Hattne
Created:
2010-02-04 05:25:02 UTC
Size:
684 bytes
patch
obsolete
>--- lib/sh/eaccess.c.orig 2010-02-03 21:26:08 -0600 >+++ lib/sh/eaccess.c 2010-02-03 21:56:32 -0600 >@@ -198,11 +198,19 @@ > char *path; > int mode; > { >+ struct stat s; >+ int ret; >+ > if (path_is_devfd (path)) > return (sh_stataccess (path, mode)); > > #if defined (HAVE_EACCESS) /* FreeBSD */ >- return (eaccess (path, mode)); >+ if (stat (path, &s) != 0) >+ return (-1); >+ ret = eaccess (path, mode); >+ if (mode == X_OK && ret == 0 && !S_ISDIR(s.st_mode) && geteuid() == 0) >+ return ((s.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0 ? -1 : 0); >+ return (ret); > #elif defined (EFF_ONLY_OK) /* SVR4(?), SVR4.2 */ > return access (path, mode|EFF_ONLY_OK); > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 303411
: 218343