reopen 582294
retitle 582294 approx doesn't handle symlinks properly
thanks
Hi there, Eric.
Please, pardon my defficiencies of reading non-mainstream computer
languages, but, if I understood the code correctly, you completely
removed the possibility of using symlinks for the approx cache.
This broke approx 4.3 for users that maintain /var/cache/approx as a
symlink to another filesystem:
On May 21 2010, Philipp Matthias Hahn wrote:
> On Thu, May 20, 2010 at 08:27:01PM -0400, Eric Cooper wrote:
> > I'm not inclined to work around problems created by the user adding
> > random things to the approx cache. Why is a symlink needed for that
> > repository?
>
> Because I'm mirroring the upstream repository, were such a symlink
> exists. If I don't create that link locally, I need to mirror each
> package twice, which uses twice the space, and more importantly, twice
> the bandwidth.
If I read it correctly, Philipp's approx cache contains symlinks that
point to the exact directories where they are, which would make these
kind of symlinks easy to deal with.
Of course, detecting if a symlink creates a directed cycle in the
filesystem is a PITA, but the case above is an easy one.
OTOH, rejecting any possibility of symlinks seems wrong in principle.
Thanks, Rogério Brito.
--
Rogério Brito : rbr...@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]