Date: Thu, 22 Aug 1996 18:28:35 +0200 (MET DST) From: Robert Eckardt <roberte@mep.ruhr-uni-bochum.de> To: Mark.Olear@Colorado.EDU (Mark O'Lear) Cc: questions@freebsd.org Subject: Re: Bug or feature? Moving file to its link deletes the file. Message-ID: <199608221628.SAA14991@gluon.mep.ruhr-uni-bochum.de> In-Reply-To: <321B967D.1A00@Colorado.EDU> from "Mark O'Lear" at Aug 21, 96 05:06:37 pm
next in thread | previous in thread | raw e-mail | index | archive | help
What system/version are you using ? I checked it on 2.1-R and it works as expected: 18:00 ghost: /usr/home/re/tmp 0% echo testfile >/usr/tmp/test 18:00 ghost: /usr/home/re/tmp 0% ln -s /usr/tmp/test test 18:01 ghost: /usr/home/re/tmp 0% ll test lrwx------ 1 re work 13 Aug 22 18:01 test -> /usr/tmp/test 18:01 ghost: /usr/home/re/tmp 0% ll /usr/tmp/test -rw-r----- 1 re wheel 9 Aug 22 18:01 /usr/tmp/test 18:01 ghost: /usr/home/re/tmp 0% mv /usr/tmp/test test 18:01 ghost: /usr/home/re/tmp 0% ll /usr/tmp/test ls: /usr/tmp/test: No such file or directory 18:01 ghost: /usr/home/re/tmp 0% ll test -rw-r----- 1 re wheel 9 Aug 22 18:01 test > > 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 \ > -- Robert Eckardt ( Ruhr-Universitaet Bochum, Inst.f.Theor.Physik, NB6/169 ) Universitaetsstrasse 150, D-44780 Bochum, Germany ----X---8---- Telefon: +49 234 700-3709, Telefax: +49 234 7094-574 8 E-Mail: RobertE@MEP.Ruhr-Uni-Bochum.de --------8---- URL: http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte >>> To be successful one needs friends, <<< >>> To be very successful one needs enemies. <<< Privat: Steinbrink 22, D-45355 Essen, Germany -====- Telefon: +49 201 678602
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608221628.SAA14991>