Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140656 Details for
Bug 141619
[PATCH] portage keeps directory permissions but updates file permissions on merge
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
implement FEATURES=merge-dir-perms and enable in make.globals
merge_dir_perms.patch (text/plain), 2.17 KB, created by
Zac Medico
on 2008-01-11 02:38:05 UTC
(
hide
)
Description:
implement FEATURES=merge-dir-perms and enable in make.globals
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-01-11 02:38:05 UTC
Size:
2.17 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 9161) >+++ pym/portage.py (working copy) >@@ -9307,6 +9307,9 @@ > writemsg_stdout("--- %s/\n" % mydest) > if bsd_chflags: > bsd_chflags.lchflags(mydest, dflags) >+ if "merge-dir-perms" in self.settings.features: >+ os.chmod(mydest, stat.S_IMODE(mystat.st_mode)) >+ os.chown(mydest, mystat.st_uid, mystat.st_gid) > else: > # a non-directory and non-symlink-to-directory. Won't work for us. Move out of the way. > if movefile(mydest,mydest+".backup", mysettings=self.settings) is None: >Index: cnf/make.globals >=================================================================== >--- cnf/make.globals (revision 9130) >+++ cnf/make.globals (working copy) >@@ -33,7 +33,7 @@ > RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O \${DISTDIR}/\${FILE} \${URI}" > > # Default user options >-FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" >+FEATURES="distlocks merge-dir-perms metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" > > # Default chunksize for binhost comms > PORTAGE_BINHOST_CHUNKSIZE="3000" >Index: bin/misc-functions.sh >=================================================================== >--- bin/misc-functions.sh (revision 9130) >+++ bin/misc-functions.sh (working copy) >@@ -46,12 +46,13 @@ > prepall > > # Now we look for all world writable files. >- for i in $(find "${D}/" -type f -perm -2); do >+ find "${D}" '(' -type f -o -type d ')' -perm -2 -print0 | \ >+ while read -d $'\0' i ; do > vecho -ne '\a' >- vecho "QA Security Notice:" >- vecho "- ${i:${#D}:${#i}} will be a world writable file." >- vecho "- This may or may not be a security problem, most of the time it is one." >- vecho "- Please double check that $PF really needs a world writeable bit and file bugs accordingly." >+ eqawarn "QA Security Notice:" >+ eqawarn "- ${i:${#D}:${#i}} will be a world writable file." >+ eqawarn "- This may or may not be a security problem, most of the time it is one." >+ eqawarn "- Please double check that $PF really needs a world writeable bit and file bugs accordingly." > sleep 1 > done >
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 141619
: 140656