Date: Wed, 4 Sep 1996 09:21:24 -0600 (MDT) From: Mark.OLear@Colorado.EDU To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1565: Moving a file to it's link completely removes file Message-ID: <199609041521.JAA01777@tele80.Colorado.EDU> Resent-Message-ID: <199609041530.IAA17152@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609041521.JAA01777>