🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11532

Re: Bug in mv command of SunOS 4

#11532
From: Steve Rumsby
Date: Tue, 14 Mar 1989 13:55
31 lines
1836 bytes
In Sun-Spots Digest, v7n177 Jonathan Sweedler writes:

About mv not checking that it can remove the file before renaming it by a
link/unlink, and thus ending up with two link to a file plus the "rename:
Not owner" error message.

This has been mentioned before in the context of doing this to
directories, where you end up with extraneous hard links to directories.
This is not good!  Anyway it is, I think, a problem with the rename system
call, not with mv itself.

[[ Yes, it is a bug with rename(2).  --wnl ]]

Then wnl adds:
> Yes.  This is not a bug.  This is a new feature that is also found in
> 4.3BSD.  See v7n108, v7n124 and v7n128.  The directory you were doing this
> in must have had the "sticky" bit set.  Read the manual page "sticky(8)"
> and "chmod(2)".  --wnl

Well, the "directories with sticky bit" is certainly a feature, but the
above mentioned behaviour of mv is definitely a bug. Also this doesn't
seem to happen on the 4.3 systems around here, and I don't remember fixing
it. I could be wrong about that though.

[[ Okay.  I must not have fully understood his problem.  --wnl ]]

	STeve.

--
UUCP:	 ...!ukc!warwick!steve		Internet: steve@maths.warwick.ac.uk
JANET:	 steve@uk.ac.warwick.maths	PHONE:	 +44 203 523523 x2657
Technical Details
Message-ID: <4912.8903061512@avon.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: steve%maths.warwick.ac.uk@nss.cs.ucl.ac.uk (Steve Rumsby)
Newsgroups: comp.sys.sun
Subject: Re: Bug in mv command of SunOS 4
Keywords: SunOS
Message-ID: <4912.8903061512@avon.warwick.ac.uk>
Date: 14 Mar 89 13:55:33 GMT
Sender: usenet@rice.edu
Organization: Maths Institute, Warwick University, Coventry, UK.
Lines: 31
Approved: Sun-Spots@rice.edu
Original-Date: Mon, 6 Mar 89 15:12:36 GMT
X-Sun-Spots-Digest: Volume 7, Issue 198, message 6 of 13