From owner-freebsd-bugs Fri Apr 7 11: 0: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id C36B737BAAE for ; Fri, 7 Apr 2000 11:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA76843; Fri, 7 Apr 2000 11:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from eubie.lbl.gov (eubie.lbl.gov [131.243.2.36]) by hub.freebsd.org (Postfix) with ESMTP id 2C29437BD47 for ; Fri, 7 Apr 2000 10:54:27 -0700 (PDT) (envelope-from jin@eubie.lbl.gov) Received: (from jin@localhost) by eubie.lbl.gov (8.9.3/8.9.3) id KAA00590; Fri, 7 Apr 2000 10:54:26 -0700 (PDT) (envelope-from jin) Message-Id: <200004071754.KAA00590@eubie.lbl.gov> Date: Fri, 7 Apr 2000 10:54:26 -0700 (PDT) From: Jin Guojun (FTG staff) Reply-To: j_guojun@lbl.gov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17847: mv symbolic link cross partition fails Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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