[buug] ln -sf bug
Rick Moen
rick at linuxmafia.com
Thu Aug 5 18:12:55 PDT 2004
Quoting johnd (john at jjdev.com):
> root at stang:/usr/src# ls -l
> total 34276
> lrwxrwxrwx 1 root root 11 Apr 28 17:16 linux -> linux-2.6.5/
> drwxr-xr-x 15 573 573 744 Apr 28 17:11 linux-2.4.25/
> drwxrwxr-x 18 500 500 1152 Aug 5 17:21 linux-2.6.5/
> drwxrwxr-x 18 500 500 624 Aug 5 17:20 linux-2.6.7/
> -rw-r--r-- 1 root root 35092228 Aug 5 17:19 linux-2.6.7.tar.bz2
> root at stang:/usr/src# ln -sf linux-2.6.7 linux
> root at stang:/usr/src# ls -l
> total 34276
> lrwxrwxrwx 1 root root 11 Apr 28 17:16 linux -> linux-2.6.5/
> drwxr-xr-x 15 573 573 744 Apr 28 17:11 linux-2.4.25/
> drwxrwxr-x 18 500 500 1152 Aug 5 17:21 linux-2.6.5/
> drwxrwxr-x 18 500 500 624 Aug 5 17:20 linux-2.6.7/
> -rw-r--r-- 1 root root 35092228 Aug 5 17:19 linux-2.6.7.tar.bz2
> root at stang:/usr/src#
>
>
> shouldn't ln -sf linux-2.6.7 linux make linux by a sym link to linux-2.6.7?
Interesting. It's surprising to me, too:
alfredo:/usr/src# ls -l
total 16
drwxr-xr-x 14 root root 4096 2004-04-09 02:50 kernel-source-2.4.17
lrwxrwxrwx 1 root src 20 2004-06-18 08:30 linux -> kernel-source-2.4.17
drwxr-xr-x 7 root root 4096 2004-04-08 11:17 rpm
alfredo:/usr/src# mkdir foo
alfredo:/usr/src# ln -sf foo linux
alfredo:/usr/src# ls -l
total 20
drwxr-sr-x 2 root src 4096 2004-08-05 10:11 foo
drwxr-xr-x 14 root root 4096 2004-08-05 10:11 kernel-source-2.4.17
lrwxrwxrwx 1 root src 20 2004-06-18 08:30 linux -> kernel-source-2.4.17
drwxr-xr-x 7 root root 4096 2004-04-08 11:17 rpm
alfredo:/usr/src# whoami
root
alfredo:/usr/src# rm linux
alfredo:/usr/src# ln -s foo linux
alfredo:/usr/src# ls -l
total 20
drwxr-sr-x 2 root src 4096 2004-08-05 10:11 foo
drwxr-xr-x 14 root root 4096 2004-08-05 10:11 kernel-source-2.4.17
lrwxrwxrwx 1 root src 3 2004-08-05 10:12 linux -> foo
drwxr-xr-x 7 root root 4096 2004-04-08 11:17 rpm
alfredo:/usr/src#
More information about the buug
mailing list