From owner-freebsd-bugs Wed Sep 4 08:30:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA17162 for bugs-outgoing; Wed, 4 Sep 1996 08:30:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA17152; Wed, 4 Sep 1996 08:30:02 -0700 (PDT) Resent-Date: Wed, 4 Sep 1996 08:30:02 -0700 (PDT) Resent-Message-Id: <199609041530.IAA17152@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Mark.OLear@Colorado.EDU Received: from tele80.Colorado.EDU (root@tele80.Colorado.EDU [128.138.149.80]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA16780 for ; Wed, 4 Sep 1996 08:21:25 -0700 (PDT) Received: (from olear@localhost) by tele80.Colorado.EDU (8.7.5/8.7.3) id JAA01777; Wed, 4 Sep 1996 09:21:24 -0600 (MDT) Message-Id: <199609041521.JAA01777@tele80.Colorado.EDU> Date: Wed, 4 Sep 1996 09:21:24 -0600 (MDT) From: Mark.OLear@Colorado.EDU Reply-To: Mark.OLear@Colorado.EDU To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1565: Moving a file to it's link completely removes file Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1565 >Category: bin >Synopsis: Moving a file to it's link completely removes file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 4 08:30:01 PDT 1996 >Last-Modified: >Originator: Mark O'Lear >Organization: >Release: FreeBSD 2.2-960501-SNAP i386 >Environment: FreeBSD 2.2-960501-SNAP i386 and FreeBSD 2.2-960801-SNAP i386 >Description: If /tmp/aaa is a link to /usr/tmp/aaa (lrwxrwxrwt 1 bin bin 12 Aug 21 16:53 /tmp/aaa@ -> /usr/tmp/aaa) doing a 'mv /usr/tmp/aaa /tmp/aaa' removes /usr/tmp/aaa, but /tmp/aaa is still a link to /usr/tmp/aaa. >How-To-Repeat: tele80> ls -lF /tmp/aaa lrwxrwxrwt 1 bin bin 12 Aug 21 16:53 /tmp/aaa@ -> /usr/tmp/aaa tele80> ls -lF /usr/tmp/aaa -rw------- 1 olear wheel 48 Aug 21 16:59 /usr/tmp/aaa tele80> mv /usr/tmp/aaa /tmp/aaa tele80> ls -lF /tmp/aaa lrwxrwxrwt 1 bin bin 12 Aug 21 16:53 /tmp/aaa@ -> /usr/tmp/aaa tele80> cat /tmp/aaa cat: /tmp/aaa: No such file or directory tele80> ls -lF /usr/tmp/aaa ls: /usr/tmp/aaa: No such file or directory >Fix: >Audit-Trail: >Unformatted: