Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!amdcad!sun!pitstop!sundc!seismo!uunet!longway!std-unix From: guy@Sun.COM (Guy Harris) Newsgroups: comp.std.unix Subject: Re: Standards Update (3 of 4): NBS FIPS Message-ID: <116@longway.TIC.COM> Date: 25 Jan 88 01:27:24 GMT Sender: std-unix@longway.TIC.COM Reply-To: guy@sun.com (Guy Harris) Lines: 21 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman) From: uunet!Sun.COM!guy (Guy Harris) This may want to be forwarded to Shane, rather than posted; unfortunately, I don't remember his email address. [ He's ahby@bungia.mn.org or uunet!rutgers!umn-cs!bungia!ahby, but this looks like a useful correction of a technical detail (one I missed on review) that should be posted. -mod ] - Only the super-user shall be allowed to link or unlink directories (2.10.4, lines 938 - 939). Another useful option. A portable application may need to know whether it requires "approprite privileges" to move directories around. No portable application needs "appropriate privileges" to move directories around; it can use "rename()". The correct way to move anything under a POSIX implementation is to use "rename()", not "link()" and "unlink()". Volume-Number: Volume 13, Number 6