For Programmers: Free Programming Magazines  


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









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
Golden California Girls

2007-07-11, 7:07 pm

Geoff Clare wrote:
> Barry Margolin wrote:
>
>
> 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.


Think of a CD. Until you actually attempt to write it shouldn't generate an
error. Once you try and write then there must be an error.

Now as to "additional file access control mechanism" that should return an
implementation defined error.



Sponsored Links







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

Copyright 2008 codecomments.com