Re: Bug#263757: a few comments about proposed readlink patch

2004-12-08 Thread Francesco Paolo Lovergine
On Wed, Dec 08, 2004 at 01:08:12PM +0100, Jeroen van Wolffelaar wrote: > On Wed, Dec 08, 2004 at 12:16:49PM +0100, Francesco Paolo Lovergine wrote: > > Basically the proposed patch needs one more hack: > > If $dir is not a symlink, readlink returns nothing, so: > > > > link=`/bin/readlink -f "

Bug#263757: a few comments about proposed readlink patch

2004-12-08 Thread Jeroen van Wolffelaar
On Wed, Dec 08, 2004 at 12:16:49PM +0100, Francesco Paolo Lovergine wrote: > Basically the proposed patch needs one more hack: > If $dir is not a symlink, readlink returns nothing, so: > > link=`/bin/readlink -f "$dir"` > if [ "x$link" != "x" ]; then > dir="$link" > fi Eh, it wo

Bug#263757: a few comments about proposed readlink patch

2004-12-08 Thread Francesco Paolo Lovergine
Basically the proposed patch needs one more hack: If $dir is not a symlink, readlink returns nothing, so: link=`/bin/readlink -f "$dir"` if [ "x$link" != "x" ]; then dir="$link" fi -- Francesco P. Lovergine