From owner-svn-src-head@freebsd.org Wed Jun 21 14:31:11 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E80FAD90CE5; Wed, 21 Jun 2017 14:31:11 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yw0-x22e.google.com (mail-yw0-x22e.google.com [IPv6:2607:f8b0:4002:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5AA56EDA4; Wed, 21 Jun 2017 14:31:11 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yw0-x22e.google.com with SMTP id 63so65072639ywr.0; Wed, 21 Jun 2017 07:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PVc52FWA9x39b4uSnEBPGH4mnwf7v17e3UjmfodttNs=; b=hOyPcSXykOdMZzpGl9oNT27kmmrmygqrH6zxtGjL6uR0MWC/gpJbWlWZhwLoTremjT +H6kGdvrBaq8wWjAmK3T5jYvVeYyVdZymTK7YSX6bg2NZGXcteWbFVYbB+6JR3fluaoP Nx7EmE14o0jdktdoT1CF0pveWGuAobA4Esqd3kTN54hU17wj6Kref4pm8H4bPW3GF+t1 XLUZEJneuOwFs0Tzye7eCH486ddYtgU8+NBbOgI7KHrdmsTWX+2KCHGJL3NrH21Xjv30 MK6g+ZSH7x+MBoTIuMWdmntBAz0ubmOO3VqJyMiz40Bo8YF3m3VkHoUblYKSq0bItUMI 1v8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PVc52FWA9x39b4uSnEBPGH4mnwf7v17e3UjmfodttNs=; b=aEq0qpWP+GtZU33NADz0wRXRjdjyskATYdwPgLJp6fKLGzHGkgG5dWQ/bcKazULcFY WSXxLFBBg/aQxs43oJc9lQg6gAORrCwcrvM74ShMpoL+5FqWaTQ5FCmN70hwboWSH6dN uG44VHuwYaJsE+UJVq2rNT9aF+Xl35SHlySvNa1IvBXgFwyuMnUEFupQLfnwu4C9PSLx Cs8IIDCHjbeLz4ySMjIp6hTw6fAxr9a6dFcn52FM3XirtCf7L8D5rdBBJf4F88gUbqml lcf7bsXr0qosqn4AY1nGSikDSRbqN06/RlHe0F+mbmmYDOoQNl6+Ob3Qd7pEon2zSsUB a/zg== X-Gm-Message-State: AKS2vOwm+M+byhl2IQPmdCV5BUjrgy20ZtYcTYg9iSsoa6afk7fXmNWW 8xBmgbY86NQ/XmvcoQ9kwcebmMnenA== X-Received: by 10.129.175.33 with SMTP id n33mr27422237ywh.279.1498055470633; Wed, 21 Jun 2017 07:31:10 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.13.206.199 with HTTP; Wed, 21 Jun 2017 07:31:10 -0700 (PDT) In-Reply-To: <20170621133732.GA44693@FreeBSD.org> References: <201706202046.v5KKk8Zd034737@repo.freebsd.org> <20170621133732.GA44693@FreeBSD.org> From: Alan Somers Date: Wed, 21 Jun 2017 08:31:10 -0600 X-Google-Sender-Auth: vA8B-3AJc9qze3vBTO5giXMVs5I Message-ID: Subject: Re: svn commit: r320172 - head/bin/ln To: Alexey Dokuchaev Cc: Ngie Cooper , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 14:31:12 -0000 On Wed, Jun 21, 2017 at 7:37 AM, Alexey Dokuchaev 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