Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 552432 Details for
Bug 646116
app-misc/jail fails with dir containing any "." - jail: can't canonize path "${path//.*}". Bad path?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
honor standalone '.' in path, split jail dir on "/./" pattern
jail-2.0-dot-pattern.patch (text/plain), 568 bytes, created by
Alexander Zubkov
on 2018-10-22 18:49:27 UTC
(
hide
)
Description:
honor standalone '.' in path, split jail dir on "/./" pattern
Filename:
MIME Type:
Creator:
Alexander Zubkov
Created:
2018-10-22 18:49:27 UTC
Size:
568 bytes
patch
obsolete
>commit 762cca3fd4aa754b266f928ec3fa2ad2261a831e >Author: Alexander Zubkov <green@qrator.net> >Date: Mon Oct 22 20:31:04 2018 +0200 > > honor standalone '.' in path, split jail dir on "/./" pattern > >diff --git a/src/jail.c b/src/jail.c >index 74f3eb1..3d649c4 100644 >--- a/src/jail.c >+++ b/src/jail.c >@@ -121,8 +121,9 @@ void make_jail_dir( char* dir ) > { > for( ; *dir != '\0'; ++dir ) > { >- if( *dir == '.' ) >+ if( dir[0] == '/' && dir[1] == '.' && dir[2] == '/' ) > { >+ ++dir; > *dir = '\0'; > break; > }
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 646116
: 552432