Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122450 Details for
Bug 182428
sys-apps/portage: quickpkg leaks information
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
set default umask to 0077 and allow QUICKPKG_DEFAULT_OPTS to override
umask.patch (text/plain), 1.02 KB, created by
Zac Medico
on 2007-06-18 20:30:10 UTC
(
hide
)
Description:
set default umask to 0077 and allow QUICKPKG_DEFAULT_OPTS to override
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-06-18 20:30:10 UTC
Size:
1.02 KB
patch
obsolete
>Index: bin/quickpkg >=================================================================== >--- bin/quickpkg (revision 6866) >+++ bin/quickpkg (working copy) >@@ -173,11 +173,20 @@ > usage = "Usage: quickpkg [options] <list of package atoms>" > from optparse import OptionParser > parser = OptionParser(usage=usage) >- options, args = parser.parse_args(sys.argv[1:]) >+ parser.add_option("--umask", >+ default="0077", >+ help="umask used during package creation (default is 0077)") >+ from portage import settings >+ default_opts = settings.get("QUICKPKG_DEFAULT_OPTS","").split() >+ options, args = parser.parse_args(default_opts + sys.argv[1:]) > if not args: > parser.error("no packages atoms given") >+ try: >+ umask = int(options.umask, 8) >+ except ValueError: >+ parser.error("invalid umask: %s" % options.umask) > # We need to ensure a sane umask for the packages that will be created. >- old_umask = os.umask(022) >+ old_umask = os.umask(umask) > from output import get_term_size, EOutput > eout = EOutput() > def sigwinch_handler(signum, frame):
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 182428
: 122450