home *** CD-ROM | disk | FTP | other *** search
- From: cowan@marob.masa.com (John Cowan)
-
- In article <490@usenix.ORG> caywood@teb.larc.nasa.gov (John Caywood) writes:
- >I take this to mean that, no, cp doesn't unlink an existing file, but
- >it truncates it upon opening under these conditions. Consequently,
- >yes, djm is correct, cp doesn't unlink. I don't understand, though,
- >why opening with O_TRUNC isn't equivalent.
-
- The difference between unlinking before opening and opening with O_TRUNC is,
- of course, that the former course of action can change the file's owner,
- group, and mode settings, whereas the latter course of action cannot.
- --
- cowan@marob.masa.com (aka ...!hombre!marob!cowan)
- e'osai ko sarji la lojban
-
- Volume-Number: Volume 21, Number 90
-
-