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

  1. Submitted-by: jms@cs.vu.nl (Jan-Mark)
  2.  
  3. I have the POSIX manual 1003.1-1988 and on page 104 it states
  4. the ``errno'' settings for a failed ``utime()'' call.
  5.     
  6.                      :
  7.                      :
  8.     [EACCES] Search permission is denied by a component of the path
  9.              prefix; or the times argument is NULL and the effective
  10.              user ID of the process does not match the owner of the
  11.              file and write access is denied.
  12.                      :
  13.                      :
  14.     [EPERM]  The times argument is not NULL and the calling process's
  15.              effective user ID has write access to the file but does
  16.              not match the owner of the file and the calling process
  17.              does not have the appropriate privileges.
  18.                      :
  19.                      :
  20.              
  21.  So if user1 (!= root) does a ``utime()'' call on user2's file
  22.  four things can happen (*):
  23.      
  24.                 |    user1 has     |   user1 has no
  25.             | write permission |  write permission
  26.     ----------------+------------------+-------------------
  27.     NULL argument   |        OK        |      EACCES
  28.     ----------------+------------------+-------------------
  29.      utimbuf arg.   |       EPERM      |     <undef.>
  30.     
  31.     
  32. Where <undef.> means I don't know what it should be.
  33. Is there a way of reading the 1003.1 that will give me the
  34. proper value? Is there a post 1988 update that does so?
  35.     
  36. If you know, please let me know!
  37.     
  38.  
  39. Thanks Jan-Mark.
  40.     
  41.  
  42. (*) Assuming the file is not on a read-only file system, or
  43. on a non searchable directory etc.
  44.  
  45. Volume-Number: Volume 27, Number 25
  46.  
  47.