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

Bug 151502

Summary: CONFIG_PROTECT and symlinks
Product: Portage Development Reporter: Kaiting Chen <Phoenixfire159>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, REGRESSION
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    

Description Kaiting Chen 2006-10-15 13:55:16 UTC
I'm not sure if this is deliberate or not, but when CONFIG_PROTECT="/etc" is set (by default), files in /etc don't get protected if /etc is a symlink.

If it is deliberate can someone tell me where I would fix this on my computer? (Because my /etc is a symlink).

Thanks.
Comment 1 Zac Medico gentoo-dev 2006-10-15 14:10:38 UTC
This may be an issue in <=portage-2.1.1, but I think it should work fine in >=portage-2.1.2_pre1 (part of the fix for bug 14321).
Comment 2 Kaiting Chen 2006-10-16 09:38:11 UTC
Actually, I found the problem today. In /usr/lib/portage/pym/portage_util.py, things work fine if the lstat() calls are changed to stat() calls.
Any chance of getting this merged?
Comment 3 Zac Medico gentoo-dev 2006-10-17 14:12:43 UTC
Thanks, this is fixed in svn r4742.
Comment 4 Zac Medico gentoo-dev 2006-10-17 15:27:14 UTC
This has been released in 2.1.2_pre3-r4.