Date: Fri, 7 Apr 2000 10:54:26 -0700 (PDT) From: Jin Guojun (FTG staff) <jin@eubie.lbl.gov> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17847: mv symbolic link cross partition fails Message-ID: <200004071754.KAA00590@eubie.lbl.gov>
next in thread | raw e-mail | index | archive | help
>Number: 17847 >Category: bin >Synopsis: mv symbolic link cross partition fails >Confidential: yes >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 7 11:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Jin Guojun (FTG staff) >Release: FreeBSD ALL-RELEASE i386 >Organization: >Environment: At least since FreeBSD 3.x-RELEASE >Description: This is supposed to be for "mv slink another_partition" [125] solaris: cd /tmp; ln -s x y [126] solaris: ll lrwxrwxrwx 1 jin 1 Apr 7 10:32 y -> x [127] solaris: mv y ~ [128] solaris: ll ~/y lrwxrwxrwx 1 jin 1 Apr 7 10:32 /home/users/jin/y -> x This is what happened on FreeBSD mv: [111] FreeBSD: cd /tmp [112] FreeBSD: mkdir test [113] FreeBSD: ln -s x y [114] FreeBSD: mv y test [115] FreeBSD: ll test total 2 drwxr-xr-x 2 jin wheel 512 Apr 7 10:34 ./ drwxrwxrwt 4 root wheel 512 Apr 7 10:34 ../ lrwxr-xr-x 1 jin wheel 1 Apr 7 10:34 y@ -> x # ok for local mv [116] FreeBSD: cd test [117] FreeBSD: mv y ~ mv: y: No such file or directory # failed HERE [118] FreeBSD: echo abc > x [119] FreeBSD: ll total 3 drwxr-xr-x 2 jin wheel 512 Apr 7 10:48 ./ drwxrwxrwt 4 root wheel 512 Apr 7 10:34 ../ -rw-r--r-- 1 jin wheel 4 Apr 7 10:48 x lrwxr-xr-x 1 jin wheel 1 Apr 7 10:34 y@ -> x [120] FreeBSD: mv y ~ # incorrect for crossing partition [121] FreeBSD: ll ~/y -rw-r--r-- 1 jin wheel 4 Apr 7 10:48 /home/users/jin/y [122] FreeBSD: cat ~/y abc [123] FreeBSD: ll total 3 drwxr-xr-x 2 jin wheel 512 Apr 7 10:49 ./ drwxrwxrwt 4 root wheel 512 Apr 7 10:34 ../ -rw-r--r-- 1 jin wheel 4 Apr 7 10:48 x >How-To-Repeat: Just repeat above operatoins within the same/different partitions. >Fix: If every one agree this incorrect, I can trace down the code to find a patch. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004071754.KAA00590>