Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151502 - CONFIG_PROTECT and symlinks
Summary: CONFIG_PROTECT and symlinks
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-10-15 13:55 UTC by Kaiting Chen
Modified: 2006-10-17 15:27 UTC (History)
0 users

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


Attachments

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