Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2017 08:31:10 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Alexey Dokuchaev <danfe@freebsd.org>
Cc:        Ngie Cooper <ngie@freebsd.org>,  "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r320172 - head/bin/ln
Message-ID:  <CAOtMX2gfVp6uMpV2c8ME%2BJbJz_SfHXbtmGEBpFXqeavvSx2djA@mail.gmail.com>
In-Reply-To: <20170621133732.GA44693@FreeBSD.org>
References:  <201706202046.v5KKk8Zd034737@repo.freebsd.org> <20170621133732.GA44693@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 21, 2017 at 7:37 AM, Alexey Dokuchaev <danfe@freebsd.org> wrote:
> On Tue, Jun 20, 2017 at 08:46:08PM +0000, Ngie Cooper wrote:
>> New Revision: 320172
>> URL: https://svnweb.freebsd.org/changeset/base/320172
>>
>> Log:
>>   ln(1): fix -F behavior
>>
>>   When '-F' option is used, the target directory needs to be unlinked.
>>   Currently, the modified target ("target/source") is being unlinked, and
>>   since it doesn't yet exist, the original target isn't removed.
>>   This is fixed by skipping the block where target is modified to
>>   "target/source" when '-F' option is set.
>>   Hence, a symbolic link (with the same name as of the original target) to
>>   the source_file is produced.
>
> Is this about the same problem I've asked asked on -hackers@ back in 2015
> (and never got any answer)?
>
> https://lists.freebsd.org/pipermail/freebsd-hackers/2015-January/046939.html
>
> ./danfe

Yep, shivansh rediscovered the same problem.  Sorry nobody noticed
your original post.
-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2gfVp6uMpV2c8ME%2BJbJz_SfHXbtmGEBpFXqeavvSx2djA>