Unix Programming - Re: What errno value should I receive if trying to create a file an a

This is Interesting: Free IT 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, 1:22 pm

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>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com