Date: Wed, 21 Aug 1996 17:06:37 -0600 From: "Mark O'Lear" <Mark.Olear@Colorado.EDU> To: questions@freebsd.org Subject: Bug or feature? Moving file to its link deletes the file. Message-ID: <321B967D.1A00@Colorado.EDU>
next in thread | raw e-mail | index | archive | help
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 \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?321B967D.1A00>