Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402298 Details for
Bug 548250
sys-apps/sandbox: path-handling on paths >= 4096 bytes fails
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/mkscript.pl
mkscript.pl (text/plain), 526 bytes, created by
Kent Fredric (IRC: kent\n) (RETIRED)
on 2015-04-30 13:18:15 UTC
(
hide
)
Description:
files/mkscript.pl
Filename:
MIME Type:
Creator:
Kent Fredric (IRC: kent\n) (RETIRED)
Created:
2015-04-30 13:18:15 UTC
Size:
526 bytes
patch
obsolete
>use strict; >use warnings; >use Cwd qw( cwd ); > >my $target = 4096; >my $pad = "x" x 200; >my $dirlen = length cwd(); > >while ( $dirlen < $target ) { > my $remaining = $target - $dirlen; > printf qq[dirlen = %s\n], $dirlen; > if ( $remaining > length $pad ) { > mkdir $pad or last; > chdir $pad or last; > $dirlen = length cwd(); > next; > } > my $subdir = substr $pad, 0, ($remaining - 1); > mkdir $subdir; > chdir $subdir; > $dirlen = length cwd(); > last; >} >printf qq[dirlen = %s\n], $dirlen; >printf qq[last error = %s\n], $!; >exit 0;
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 Raw
Actions:
View
Attachments on
bug 548250
:
402296
| 402298 |
402300