[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths
From: |
Peter Bex |
Subject: |
Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths |
Date: |
Tue, 28 May 2013 22:21:22 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Sat, May 25, 2013 at 05:59:37PM +0200, Moritz Heidkamp wrote:
> Mario Domenech Goulart <address@hidden> writes:
> > Maybe "readlink -f" ?
>
> OK, Peter found that even that is not portable so I changed the test
> itself to do the path canonicalization. Turns out that while the posix
> unit's read-symbolic-link has a CANONICALIZE option it doesn't quite
> behave like the readlink(1) program. So I went ahead and adapted its
> behavior to match that. I also noticed that the types.db entry for
> read-symbolic-link did not include that optional argument so I took it
> as an opportunity to fix this, as well.
Thanks, this has been pushed (with a minor correction in the absolute
pathname case - it referred to an undefined variable "link", which
obviously was supposed to be "target")
Cheers,
Peter
--
http://www.more-magic.net