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

Richard Dawe <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
Hello.

Jim Meyering wrote:
[snip]
> > 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?
[snip]
> 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/ ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.