Re: [gentoo-portage-dev] making permission/ownership retention consistent
On Wed, 2006-07-05 at 02:20 -0400, Mike Frysinger wrote: 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 I agree with retaining permissions of an already existing directory/file. Nothing I hate more as a system admin is having to double check permissions when reinstalling software. Regards, Paul -- gentoo-portage-dev@gentoo.org mailing list
[gentoo-portage-dev] making permission/ownership retention consistent
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 pgpsEvCqcKnY4.pgp Description: PGP signature