[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] symlinks destroyed in V3.2-2003-07-26



On Fri, Aug 22, 2003 at 10:36:12PM +0200, Baeckeroot alain wrote:
> Hello Knoppix world
> 
> First I want to thanks KK for the really nice job of knoppix3.2
> 
> I have installed the latest knoppix-v3.2-2003-07-26 (whith kernel 2.4.21-xfs)
> and I thinks i have a huge bug or misconfiguration:
> 
> my symlinks are replaced by the file when I use "vi" (or gvim):
> 
> $ touch toto
> $ ln -s toto titi
> $ ll
> total 0
> lrwxrwxrwx    1 al2      al2             4 2003-08-22 22:29 titi -> toto
> -rw-r--r--    1 al2      al2             0 2003-08-22 22:29 toto
> $ vi titi		(I only do :wq  == write + quit)
> $ ll
> total 0
> -rw-r--r--    1 al2      al2             0 2003-08-22 22:29 titi
> -rw-r--r--    1 al2      al2             0 2003-08-22 22:29 toto

Actually, this behaviour of vim is correct. Otherwise, it would not be
possible to overwrite files in /etc that are symlinks to files on the
CD-Rom. Check /etc/vim/vimrc for an option that says "set nobackup". If
you comment this out, vim will not unlink the file prior to overwriting,
and you will have to manually delete files in /etc prior to :wq!, if
they are symlinks to files on CD.

Regards
-Klaus Knopper
-- 
Klaus Knopper                           Technical Solutions & Finances
knopper@linuxtag.org                          http://www.linuxtag.org/
Phone +49-(0)631-3109371                        Fax +49-(0)631-3109372
LinuxTag 2003 - Europes largest Linux Expo       Where .com meets .org
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: