Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70430 - caching bug in portage.py:cacheddir
Summary: caching bug in portage.py:cacheddir
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 01:00 UTC by Ludovic Aubry
Modified: 2005-02-28 09:18 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 Ludovic Aubry 2004-11-08 01:00:40 UTC
the function cacheddir does not take into account the followSymlink flag.
Two consecutive call on the same dir with a different followSymlink flag will return the same result.
Comment 1 Christopher Korn 2004-11-09 11:39:53 UTC
more information would be really helpful. 
for example emerge --info, how to reproduce or something like this. 
Comment 2 Ludovic Aubry 2004-11-09 14:42:11 UTC
The bug is probably never triggered. I just found it by reading the code.
This bug was mostly a reminder for ferringb to fix it one way or another before someone hits it.
The code is in Portage.py:cacheddir (line 239 of portage-2.0.51-r2)
the cache used stores the filetype which is retrieved by stat or lstat depending on the value of followSymlink. However if the cached value is retrieved, the followSymlink flag isn't taken into account.
looks like a fix got in with rev 1.551
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2005-02-28 09:18:10 UTC
As noted, fixed.