Argument validity checking (addresses)

Lars H Carlsson lca at spodv4.UUCP
Mon Feb 5 19:52:49 AEST 1990


In article <1990Feb2.070437.2695 at stb.uucp>, michael at stb.uucp (Michael Gersten) writes:
> <Sigh>. Guys, to find out if an address is valid or not, pass it to
> access as a filename. It has to check for that being valid and in your
> address, and you can see if it gives you EACCESS or not.
> 
> So there is a use for access() after all.
> 
> 		Michael
> -- 
> 		Michael
> denwa!stb!michael anes.ucla.edu!stb!michael 
> "The 80's: Ten years that came in a row."


X/Open page ACCESS(2).1
"
...
	[EACCES]	Permission bits of the file mode do not permit
			the requested access.
...
"

	(there are access and access ;-)

LH



More information about the Comp.unix.wizards mailing list