Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: How does 'mv' rename directories? Message-ID: <2450@auspex.auspex.com> Date: 14 Sep 89 17:20:29 GMT References: <544@isi.UUCP> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 13 >But on Microport, Xenix, and Sun Unix 4.0, /bin/mv is -rwxr-xr-x and is >owned by 'bin'. How is 'mv' able to rename directories on a properly >working system? In SunOS 4.0 - and in other systems that have the "rename()" system call from 4.[23]BSD, including all other SunOS releases, 4.[23]BSD themselves, Ultrix, etc. - it uses the "rename" call, which lets you move directories when it's safe, and doesn't require super-user privileges. I expect S5R4 to have this as well, and thus to render obsolete the program that S5R3, at least (and possibly Microport and Xenix, and maybe some older S5 releases, as well) uses to move directories.