Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Mike Frysinger <vapier <at> gentoo.org>
Subject: making permission/ownership retention consistent
Newsgroups: gmane.linux.gentoo.portage.devel
Date: Wednesday 5th July 2006 06:20:44 UTC (over 11 years ago)
when merging things from ${D} to ${ROOT}, portage currently will make sure 
that the permissions in ${D} for files are retained after merging into 
${ROOT}, but not for directories

for example, consider an ebuild that:
 - creates dir /usr/share/foo with foo:foo ownership and 777 permissions
 - creates file /usr/share/foo/bar with foo:foo ownership and 777
permissions

now the user goes in and runs:
 chmod -R 700 /usr/share/foo
 chown -R 0:0 /usr/share/foo

then the user goes and re-emerges the aforementioned ebuild ... then end 
result ?  the directory /usr/share/foo will still be 0:0 ownership with 700

permissions yet the file /usr/share/foo/bar will be reset to foo:foo 
ownership and 777 permissions

personally i think that we should be retaining the permissions of the file
as 
is instead of resetting it, but i wont fight too hard in either direction
... 
we just need the behavior to be consistent
-mike
 
CD: 2ms