Re: ln -s broken on 2.4.5

Marcus Meissner (Marcus.Meissner@caldera.de)
Wed, 30 May 2001 23:30:05 +0200


On Wed, May 30, 2001 at 09:08:56PM +0100, Alan Cox wrote:
> > > What file system. Its find on my 2.4.5-ac with ext2
> >
> > 100% reproducible on NFS and EXT2 here, with following:
>
>
> > $ ls -la bar
> > lrwxrwxrwx 1 marcus users 3 May 30 20:30 bar -> bar
>
> bash-2.04$ uname -a
> Linux irongate.swansea.linux.org.uk 2.4.5-ac2 #163 Mon May 28 22:56:38 BST 2001 i686 unknown
> bash-2.04$ ln -s frobnitz flop
> bash-2.04$ ls -l f*
> lrwxrwxrwx 1 alan users 8 May 30 20:50 flop -> frobnitz
>
> bash-2.04$ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81

The problem is only there if you specify a directory for the linked to
component.

[marcus@wine /tmp]$ strace -f ln -s fupp/berk xxx
execve("/bin/ln", ["ln", "-s", "fupp/berk", "xxx"], [/* 39 vars */]) = 0
... ld stuff ... locale stuff ...
lstat64("xxx", 0xbffff47c) = -1 ENOENT (No such file or directory)
lstat64("xxx", 0xbffff47c) = -1 ENOENT (No such file or directory)
symlink("fupp/berk", "xxx") = 0
_exit(0) = ?
[marcus@wine /tmp]$ ll xxx
lrwxrwxrwx 1 marcus users 3 May 30 22:36 xxx -> xxx
[marcus@wine /tmp]$ uname -a
Linux wine.lst.de 2.4.5-ac4 #3 SMP Tue May 29 18:24:07 CEST 2001 i686 unknown
[marcus@wine /tmp]$

It works just wonderful with previous kernels.

Ciao, Marcus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/