[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fileutils 4.1: tests/ls/follow-slink

From: Richard Dawe
Subject: Re: fileutils 4.1: tests/ls/follow-slink
Date: Wed, 04 Dec 2002 19:30:46 +0000


Jim Meyering wrote:
> > In the DJGPP port of 'ln', this does nothing. No symlink is created - this
> > is due to the DJGPP libc implementation of symlink(). So the 'ls -L'
> > command fails and the test passes.
> Thanks for the explanation.
> If the DJGPP libc implementation of symlink really
> works that way, then shouldn't it be fixed?
> What version of DJGPP has this problem?

AFAIK DJGPP 2.03 and earlier. The symlink implementation in DJGPP 2.03 and
earlier just creates symlinks as aliases for executables - they're not proper
symlinks. If you do symlink("a", "b"), then "b" will be created as a stub
executable which will run "a".

DJGPP CVS (which will be 2.04) has a proper symlink implementation. This uses
files containing the real file name - absolute or relative. This should not
suffer from the problem described above. So DJGPP has already been fixed.

Since tests/ls/follow-slink is meaningless for DJGPP 2.03, but will probably
work for DJGPP CVS/2.04, it seems like the test could just be left as it is. I
describe the result of tests/ls/follow-slink as "bogus" in the DJGPP-specific
readme anyhow.

Thanks, bye, Rich =]

Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]