home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0091.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.2 KB  |  34 lines

  1. Submitted-by: bitbug@netcom.com (James Buster)
  2.  
  3. Moderator!:  Delete most of these lines (begin):
  4.  
  5. In IEEE Posix Std. 1003.1 (ISO/IEC 9945-1) states, under the definition
  6. of utime() (Pages 108-110):
  7.  
  8.     "If the _times_ argument is not NULL, it is interpreted as a
  9.     pointer to a utimbuf structure, and the access and modification
  10.     times are set to the values contained in the designated structure.
  11.     Only the owner of the file and processes with appropriate
  12.     privileges shall be permitted to use the utime() function in
  13.     this way."
  14.  
  15. Later, in the Errors section:
  16.  
  17. [EPERM]    The _times_ argument is not NULL, the effective user ID of the
  18.     calling process has write access to the file, but does not
  19.     match the owner of the file, and the calling process does not
  20.     have the appropriate privileges.
  21.  
  22. Here is my question: Why mention write access in the EPERM description?
  23. Clearly, as described above, if _times_ isn't NULL, write access is not
  24. considered when determining whether to grant a successful call to utime().
  25. I can only conclude that mentioning write access is an error on the part
  26. of the drafters of this document. Any Posix experts care to comment?
  27. -- 
  28.                 James Buster
  29.                  bitbug@netcom.com
  30.  
  31.  
  32. Volume-Number: Volume 27, Number 90
  33.  
  34.