lkml.org 
[lkml]   [1997]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: "ln -sf" failing
On Jul 25, Florian La Roche wrote:

> I can sometimes see "ln -sf file newsymlink" failing that should replace
> existing symlinks. (Though I don't have any strace available...)
> "ln -f" seems to unlink() first, so I can't see any problem with this.
>
> Do other people also see this? What is going on here?

you're trying to replace a symlink pointing to a directory, right ?
look in that directory and you'll find your newly created symlink...


try

ln -sfn file newsymlink

for GNU "ln" ...


Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:1.399 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site