Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2021 22:29:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254489] Command 'ln -sfF' behaves unreasonably: it deletes the target directory and then fails
Message-ID:  <bug-254489-227-xbo5VqCH1o@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254489-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254489-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254489

--- Comment #2 from Yuri Victorovich <yuri@freebsd.org> ---
> The -F option checks if your last argument is a directory and if it is, i=
t removes it only if it's empty (see code below).


But this isn't what ln(1) says:
> -F     If the target file already exists and is a directory, then remove
>        it so that the link may occur.

The target of the link in this case is a file .x/ls and it doesn't exist.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254489-227-xbo5VqCH1o>