Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 311507 Details for
Bug 346929
sys-apps/sandbox: {mkdir,open,unlink}at("") does not fail with ENOENT (breaks test-mkdirat gnulib test in sys-apps/findutils-4.5.9)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
specialcase empty pathname in mkdirat
sandbox-2.5-mkdirat.patch (text/plain), 677 bytes, created by
Marien Zwart (RETIRED)
on 2012-05-12 14:54:42 UTC
(
hide
)
Description:
specialcase empty pathname in mkdirat
Filename:
MIME Type:
Creator:
Marien Zwart (RETIRED)
Created:
2012-05-12 14:54:42 UTC
Size:
677 bytes
patch
obsolete
>=== modified file 'libsandbox/wrapper-funcs/mkdirat_pre_check.c' >--- libsandbox/wrapper-funcs/mkdirat_pre_check.c 2012-05-11 11:46:37 +0000 >+++ libsandbox/wrapper-funcs/mkdirat_pre_check.c 2012-05-12 14:45:12 +0000 >@@ -12,6 +12,15 @@ > > save_errno(); > >+ /* XXX: The findutils tests check for ENOENT if pathname is empty. >+ * We need to specialcase this, as passing an existing directory >+ * including trailing slash to mkdirat needs to fail with EEXIST. >+ */ >+ if (pathname && pathname[0] == '\0') { >+ errno = ENOENT; >+ return false; >+ } >+ > /* Expand the dirfd path first */ > switch (resolve_dirfd_path(dirfd, pathname, dirfd_path, sizeof(dirfd_path))) { > case -1: >
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 346929
:
255553
|
255555
| 311507