From owner-freebsd-stable Fri Aug 10 9: 6:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailout02.sul.t-online.de (mailout02.sul.t-online.com [194.25.134.17]) by hub.freebsd.org (Postfix) with ESMTP id CF1E437B401 for ; Fri, 10 Aug 2001 09:06:40 -0700 (PDT) (envelope-from thorsten@trampisch.com) Received: from fwd02.sul.t-online.de by mailout02.sul.t-online.de with smtp id 15VEo2-0007Yb-04; Fri, 10 Aug 2001 18:06:38 +0200 Received: from trampisch.com (520046176940-0001@[217.4.209.247]) by fmrl02.sul.t-online.com with esmtp id 15VEns-1J6KJsC; Fri, 10 Aug 2001 18:06:28 +0200 Message-ID: <3B740682.7090408@trampisch.com> Date: Fri, 10 Aug 2001 18:06:26 +0200 From: Thorsten Trampisch User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: David Malone Cc: freebsd-stable@freebsd.org Subject: Re: removing a symbolic link in 4.4-PRERELEASE References: <3B73BC3B.CE1192A8@trampisch.com> <20010810161701.A5902@walton.maths.tcd.ie> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Sender: 520046176940-0001@t-dialin.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello David, that's it. It's not the upgrade procedure but my own stupidity :-) Thanks, Thorsten David Malone wrote: > On Fri, Aug 10, 2001 at 12:49:31PM +0200, Thorsten Trampisch wrote: > >>after upgrading to 4.4-PRERELEASE via CVSup removing a symbolic link to >>a directory >>does not remove the link but the contents of the linked directory. >> >>Is this behavior a bug or why does it not work like I expected it to? >> > > Did you leave a trailing slash after the name of the directory? > The traditional thing to do is remove the directory if you add the > slash but remove the link if don't include the slash. (I don't have > a 4.4 box I can test this on, but the example below is from a 4.2 > box). > > David. > > lanczos 29% mkdir a > lanczos 30% ln -s a b > lanczos 31% ln -s a c > lanczos 32% ls -ld ? > drwxr-xr-x 2 dwmalone wheel 512 Aug 10 16:10 a > lrwxr-xr-x 1 dwmalone wheel 1 Aug 10 16:11 b -> a > lrwxr-xr-x 1 dwmalone wheel 1 Aug 10 16:11 c -> a > lanczos 33% rm b > lanczos 34% ls -ld ? > drwxr-xr-x 2 dwmalone wheel 512 Aug 10 16:10 a > lrwxr-xr-x 1 dwmalone wheel 1 Aug 10 16:11 c -> a > lanczos 35% rm c/ > rm: c/: is a directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message