home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: jms@cs.vu.nl (Jan-Mark)
-
- I have the POSIX manual 1003.1-1988 and on page 104 it states
- the ``errno'' settings for a failed ``utime()'' call.
-
- :
- :
- [EACCES] Search permission is denied by a component of the path
- prefix; or the times argument is NULL and the effective
- user ID of the process does not match the owner of the
- file and write access is denied.
- :
- :
- [EPERM] The times argument is not NULL and the calling process's
- effective user ID has write access to the file but does
- not match the owner of the file and the calling process
- does not have the appropriate privileges.
- :
- :
-
- So if user1 (!= root) does a ``utime()'' call on user2's file
- four things can happen (*):
-
- | user1 has | user1 has no
- | write permission | write permission
- ----------------+------------------+-------------------
- NULL argument | OK | EACCES
- ----------------+------------------+-------------------
- utimbuf arg. | EPERM | <undef.>
-
-
- Where <undef.> means I don't know what it should be.
- Is there a way of reading the 1003.1 that will give me the
- proper value? Is there a post 1988 update that does so?
-
- If you know, please let me know!
-
-
- Thanks Jan-Mark.
-
-
- (*) Assuming the file is not on a read-only file system, or
- on a non searchable directory etc.
-
- Volume-Number: Volume 27, Number 25
-
-