For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > Re: What errno value should I receive if trying to create a file an a









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: What errno value should I receive if trying to create a file an a
Geoff Clare

2007-07-11, 8:06 am

Barry Margolin wrote:

> Actually, it's not even clear to me that any of the error conditions
> mentioned in EACCESS apply. Does a read-only file system imply that you
> don't have write permission to the directories residing on it? Or do
> "permissions" refer specifically to the permission mode bits?


The rules for file access permissions are defined in XBD section 4.4.

If the file has write permission according to the normal permission
bits, I think an implementor could still justify returning EACCES by
claiming that the system has an "additional file access control
mechanism" whereby write permission is not granted for files on
read-only file systems.

--
Geoff Clare <netnews@gclare.org.uk>
Ronaldinho

2007-07-15, 9:45 am

Free webcams in the toilets!
http://pissing-skills-avi.info/WindowsMedia?218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com