home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v21 / 090 < prev    next >
Internet Message Format  |  1990-12-05  |  1KB

  1. From std-unix-request@uunet.uu.net  Sat Sep  8 09:20:38 1990
  2. Received: from cs.utexas.edu by uunet.uu.net (5.61/1.14) with SMTP 
  3.     id AA18190; Sat, 8 Sep 90 09:20:38 -0400
  4. Posted-Date: 7 Sep 90 16:12:07 GMT
  5. Received: by cs.utexas.edu (5.64/1.76) 
  6. From: cowan@marob.masa.com (John Cowan)
  7. Newsgroups: comp.std.unix
  8. Subject: Re: Query about P1003.2 'cp' utility
  9. Message-Id: <496@usenix.ORG>
  10. References: <490@usenix.ORG> <DJM.90Aug17151613@jolt.eng.umd.edu> <439@usenix.ORG>
  11. Sender: std-unix@usenix.ORG
  12. Organization: ESCC, New York City
  13. X-Submissions: std-unix@uunet.uu.net
  14. Date: 7 Sep 90 16:12:07 GMT
  15. Reply-To: std-unix@uunet.uu.net
  16. To: std-unix@uunet.uu.net
  17.  
  18. From:  cowan@marob.masa.com (John Cowan)
  19.  
  20. In article <490@usenix.ORG> caywood@teb.larc.nasa.gov (John Caywood) writes:
  21. >I take this to mean that, no, cp doesn't unlink an existing file, but
  22. >it truncates it upon opening under these conditions.  Consequently,
  23. >yes, djm is correct, cp doesn't unlink.  I don't understand, though,
  24. >why opening with O_TRUNC isn't equivalent.
  25.  
  26. The difference between unlinking before opening and opening with O_TRUNC is,
  27. of course, that the former course of action can change the file's owner,
  28. group, and mode settings, whereas the latter course of action cannot.
  29. -- 
  30. cowan@marob.masa.com            (aka ...!hombre!marob!cowan)
  31.             e'osai ko sarji la lojban
  32.  
  33. Volume-Number: Volume 21, Number 90
  34.  
  35.