Newsgroups: comp.unix.questions
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!unmvax!nmt.edu!nraoaoc
From: rmilner@zia.aoc.nrao.edu (Ruth Milner)
Subject: Re: removing hard linked directories
Message-ID: <1991Mar27.033619.5127@nmt.edu>
Reply-To: rmilner@zia.aoc.nrao.edu (Ruth Milner)
Organization: National Radio Astronomy Observatory, Socorro NM
References: <1991Mar21.100031.12027@athena.mit.edu> <8413@mentor.cc.purdue.edu> <6833@auspex.auspex.com>
Date: Wed, 27 Mar 91 03:36:19 GMT

In article <6833@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes:
>>Some versions of UNIX do not have the rename() call. As such, to do a mv,
>>they implement a link(), then an unlink(). Here is what probably happened.
>
>Well, maybe.
>
>On the other hand, I've seen Ms. Milner post in "comp.sys.sun" in the
>past; if the machine in question is a Sun, its version of UNIX most
>definitely has "rename()" (her postings indicated that she's not running
>Sun-1s with Unisoft V7 :-)).  

In this particular instance, it's a Solbourne running OS/MP 4.0c = SunOS 4.0.3.
I'd try it on some of my "real" Suns, but I'm not keen on the results :-}.

>And yes, the Sun code *is*, in fact, a bit
>brain-damaged; the "rename()" code gets halfway through the operation,
>and then bails out because the directory is sticky, without backing the
>stuff it's already done out.

Only the parent directory, /usr/tmp itself, was sticky, not the directory I 
was attempting to mv - or is this what you mean?
-- 
Ruth Milner
Systems Manager                     NRAO/VLA                    Socorro NM
                            rmilner@zia.aoc.nrao.edu
