From owner-freebsd-questions Wed Aug 21 16:06:41 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA10749 for questions-outgoing; Wed, 21 Aug 1996 16:06:41 -0700 (PDT) Received: from jack.Colorado.EDU (jack.Colorado.EDU [128.138.149.29]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA10744 for ; Wed, 21 Aug 1996 16:06:39 -0700 (PDT) Received: from jack (localhost [127.0.0.1]) by jack.Colorado.EDU (8.7.5/8.7.3/CNS-4.0p) with SMTP id RAA02906 for ; Wed, 21 Aug 1996 17:06:37 -0600 (MDT) Message-ID: <321B967D.1A00@Colorado.EDU> Date: Wed, 21 Aug 1996 17:06:37 -0600 From: "Mark O'Lear" Organization: University of Colorado X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: questions@freebsd.org Subject: Bug or feature? Moving file to its link deletes the file. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is this a bug or a feature? 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 /usr/tmp/aaa was a real file with data until I tried to move it to /tmp/aaa which was a link to /usr/tmp/aaa. -- Mark O'Lear \ e-mail: Mark.Olear@Colorado.EDU University of Colorado \ phone: (303) 492-3798 Telecomm. Svcs. (CB 313) \ fax: (303) 492-5105 Boulder, CO 80309 \