From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Maarten LITMAATH Newsgroups: gmane.os.tru64.managers Subject: UPDATE: OSF1V5.1 has a bug in advfs or mv command Date: Fri, 21 Mar 2003 21:04:11 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3E7B703B.1080606@cern.ch> References: <3E7B1C5E.5090400@cern.ch> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048277069 461 80.91.224.249 (21 Mar 2003 20:04:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 20:04:29 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Mar 21 21:04:27 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18wSkc-000074-00 for ; Fri, 21 Mar 2003 21:04:26 +0100 Original-Received: (qmail 8018 invoked by uid 5); 21 Mar 2003 20:04:25 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8009 invoked by uid 49493); 21 Mar 2003 20:04:25 -0000 Original-Received: from Maarten.Litmaath@cern.ch by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-4.3/5.0):. Processed in 0.574567 secs); 21 Mar 2003 20:04:25 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 21 Mar 2003 20:04:24 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HC400E077R7G7@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 21 Mar 2003 15:04:22 -0500 (EST) Original-Received: from smtp3.cern.ch (smtp3.cern.ch [137.138.131.164]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HC400BHI7QZD5@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 21 Mar 2003 15:04:12 -0500 (EST) Original-Received: from cern.ch (pcitadc18.cern.ch [137.138.32.180]) by smtp3.cern.ch (8.12.1/8.12.1) with ESMTP id h2LK4BTP022756 for ; Fri, 21 Mar 2003 21:04:11 +0100 (MET) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Authentication-warning: smtp3.cern.ch: Host pcitadc18.cern.ch [137.138.32.180] claimed to be cern.ch Xref: main.gmane.org gmane.os.tru64.managers:3742 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3742 Dear Tru64 Managers, as usual this list has excellent response time: first reply in 4 min! Here is the relevant part of the example I sent earlier: -------------------------------------------- > date > foo.txt > date > bar.txt > chmod 444 foo.txt > mv foo.txt bar.txt mv: cannot unlink foo.txt: Permission denied -------------------------------------------- First of all, our exact version is 5.1a with PK3. Second, the "mv" is not an alias, just /bin/mv. Third, here is the relevant portion of the system call trace from the "truss" command: ------------------------------------------------------------------------ stat("bar.txt", 0x000000011FFF5B58) = 0 stat("bar.txt", 0x000000011FFF5B58) = 0 stat("foo.txt", 0x000000011FFF5B58) = 0 lstat("foo.txt", 0x000000011FFF5268) = 0 lstat("bar.txt", 0x000000011FFF5128) = 0 access("bar.txt", F_OK) = 0 access("bar.txt", W_OK) = 0 access("foo.txt", W_OK) Err#13 Permission denied ------------------------------------------------------------------------ Fourth, let me already thank the people who responded so-far: Lucien HERCAUD - confirmed bug on 5.1a PK1 Daniel Lungu Bryan Lavelle (HP) - bug not found on 5.1a PK1, PK4 Gregg Palmer Joe Senulis - confirmed bug on 5.1a PK3 Bob Sloane Didier Godefroy So we have a bit of a weird situation: at the same OS level some people have the bug, others do not. The behavior in the example _is_ a bug, because the absence of write permission for the source file is irrelevant for the "mv" to succeed (and indeed, a "mv -f" works fine). I will post a summary when a resolution has been arrived at. Regards, Maarten.Litmaath@cern.ch