Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48716

Summary: app-portage/mirrorselect changes permissions of /etc/make.conf
Product: Portage Development Reporter: Drake Wyrm <lilwyrm>
Component: ToolsAssignee: John Mylchreest (RETIRED) <johnm>
Status: VERIFIED FIXED    
Severity: normal CC: tools-portage
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.haell.com/~wyrm/projects/gentoo/app-portage_mirrorselect
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: use 'cp -p' to create make.conf.old

Description Drake Wyrm 2004-04-22 13:15:08 UTC
mirrorselect fails to preserve the permissions of /etc/make.conf if root's umask differs from the permissions of /etc/make.conf

Example:
# umask
0077
# ls -l /etc/make.conf
-rw-r--r--    1 root     root        14930 Apr 22 06:28 /etc/make.conf
# mirrorselect -a
# ls -l /etc/make.conf
-rw-------    1 root     root        14780 Apr 22 12:11 /etc/make.conf

Expected:
# mirrorselect -a
# ls -l /etc/make.conf
-rw-r--r--    1 root     root        14780 Apr 22 12:11 /etc/make.conf
Comment 1 Drake Wyrm 2004-04-22 13:18:57 UTC
Created attachment 29839 [details, diff]
use 'cp -p' to create make.conf.old

Rather than moving the old make.conf, use 'cp -p' That way, if the failsafe
below needs to restore make.conf, the permissions will still be preserved
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2004-08-22 05:44:08 UTC
fixed as suggested in 0.85