access(2) (was: Writing to A NON-Existing File in "C")

Michael T Sullivan sullivan at vsi.UUCP
Sat Apr 23 06:46:32 AEST 1988


On the one side you have people giving reasons not to use access() and
on the other you have people saying "but what's the harm".  Remember,
you can use system("ls filename > /tmp/snork") to determine whether a
file exists, it's just not the best/right way.  If you can't give an
reason any better than "what's the harm" (and the stat people give good
reasons not to) then just use access().

-- 
Michael Sullivan		{uunet|attmail}!vsi!sullivan
				sullivan at vsi.com
HE V MTL



More information about the Comp.unix.wizards mailing list