Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48716 - app-portage/mirrorselect changes permissions of /etc/make.conf
Summary: app-portage/mirrorselect changes permissions of /etc/make.conf
Status: VERIFIED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Mylchreest (RETIRED)
URL: http://www.haell.com/~wyrm/projects/g...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 13:15 UTC by Drake Wyrm
Modified: 2010-03-27 22:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
use 'cp -p' to create make.conf.old (mirrorselect.patch,489 bytes, patch)
2004-04-22 13:18 UTC, Drake Wyrm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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