This has been bugging me for some time, but I've never gotten around to posting about it here before. Why doesn't the symlink get overwritten, please? The behaviour I see below seems quite at odds to the documentation in the man page (but then, perhaps I simply haven't read the mapage properly ;)

   # ln -s -f linux-2.6.15.1 linux
   # ls -l
   total 72
   -rw-r--r--   1 root root 33712 Mar 30  2005 kernel.config.16.3.2005
   -rw-r--r--   1 root root 30167 Oct 17 02:25 kernel.config.17.10.2005
lrwxrwxrwx 1 root root 22 Feb 7 08:01 linux -> linux-2.6.15- gentoo-r1
   drwxr-xr-x  19 root root  1320 Feb  7 08:01 linux-2.6.12-gentoo-r10
   drwxr-xr-x  19 root root  1336 Nov 27 08:06 linux-2.6.14-gentoo-r2
   drwxr-xr-x  20 root root  1392 Feb  9 07:34 linux-2.6.15-gentoo-r1
   drwxr-xr-x  19 root root   712 Feb  9 07:25 linux-2.6.15.1
   # rm linux
   rm: remove symbolic link `linux'? y
   807 /usr/src # ln -s -f linux-2.6.15.1 linux
   808 /usr/src # ls -l
   total 72
   -rw-r--r--   1 root root 33712 Mar 30  2005 kernel.config.16.3.2005
   -rw-r--r--   1 root root 30167 Oct 17 02:25 kernel.config.17.10.2005
   lrwxrwxrwx   1 root root    14 Feb  9 07:37 linux -> linux-2.6.15.1
   drwxr-xr-x  19 root root  1320 Feb  7 08:01 linux-2.6.12-gentoo-r10
   drwxr-xr-x  19 root root  1336 Nov 27 08:06 linux-2.6.14-gentoo-r2
   drwxr-xr-x  20 root root  1392 Feb  9 07:34 linux-2.6.15-gentoo-r1
   drwxr-xr-x  19 root root   712 Feb  9 07:25 linux-2.6.15.1
   #

TIA for any advices,

Stroller
--
gentoo-user@gentoo.org mailing list

Reply via email to