Anyone notice any problems with the 'ln' command not correctly replacing existing symlinks with the -fs option? daydream:/usr/src # ln --version ln (GNU fileutils) 4.0 daydream:/usr/src # l total 4440 drwxr-xr-x 6 root root 316 Jul 4 08:58 ./ drwxr-xr-x 24 root root 639 Jul 4 04:46 ../ drwxr-xr-x 14 root root 463 Jul 4 00:04 .linux-2.2.16/ -rw-r--r-- 1 root root 387774 Jun 26 18:19 emu10k1-2.2.16-1.patch lrwxrwxrwx 1 root root 12 Jul 4 08:58 linux -> linux-2.2.16/ drwxr-xr-x 15 root root 565 Jul 4 08:57 linux-2.2.14.SuSE/ drwxr-xr-x 15 root root 720 Jul 4 09:40 linux-2.2.16/ drwxr-xr-x 7 root root 141 Jul 3 21:38 packages/ -rw-r--r-- 1 root root 1132557 May 3 17:24 patch-2.2.15.bz2 -rw-r--r-- 1 root root 1062565 Ju7 7 14:34 patch-2.2.16.bz2 -rw-r--r-- 1 root root 1946028 Jul 1 20:44 reiserfs-3.5.19-2.2.16.patch daydream:/usr/src # ln -fs linux-2.2.14.SuSE linux daydream:/usr/src # l total 4440 drwxr-xr-x 6 root root 316 Jul 4 08:58 ./ drwxr-xr-x 24 root root 639 Jul 4 04:46 ../ drwxr-xr-x 14 root root 463 Jul 4 00:04 .linux-2.2.16/ -rw-r--r-- 1 root root 387774 Jun 26 18:19 emu10k1-2.2.16-1.patch lrwxrwxrwx 1 root root 12 Jul 4 08:58 linux -> linux-2.2.16/ drwxr-xr-x 15 root root 565 Jul 4 08:57 linux-2.2.14.SuSE/ drwxr-xr-x 15 root root 720 Jul 4 15:19 linux-2.2.16/ drwxr-xr-x 7 root root 141 Jul 3 21:38 packages/ -rw-r--r-- 1 root root 1132557 May 3 17:24 patch-2.2.15.bz2 -rw-r--r-- 1 root root 1062565 Jun 7 14:34 patch-2.2.16.bz2 -rw-r--r-- 1 root root 1946028 Jul 1 20:44 reiserfs-3.5.19-2.2.16.patch Yet it worked fine in SuSE-6.3 distribution, I've also done an update from the FTP site with the same results as shown above. -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
"S.Toms" wrote:
Anyone notice any problems with the 'ln' command not correctly replacing existing symlinks with the -fs option?
This is a known issue (has been since long). Don't rely on the -f option. To be sure 'rm -f' a possibly existing link before creating a new one. Henning -- H. Henning Vossieck http://hhv.de [currently inactive] SuSE Linux 6.4 Kernel 2.4.0-test3-267 glibc 2.1.3 egcs 2.95.2 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On Wed, 5 Jul 2000, Henning wrote: h> "S.Toms" wrote: h> > h> > Anyone notice any problems with the 'ln' command not correctly replacing h> > existing symlinks with the -fs option? h> h> This is a known issue (has been since long). h> Don't rely on the -f option. To be sure 'rm -f' a possibly existing link before h> creating a new one. h> First I heard of the problem, thanks though, thought I was imagining things. h> Henning h> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.4+ - Kernel 2.2.16 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
hhv@hhv.de
-
tomas@primenet.com