Jim Meyering 6bf3479c9f (copy_reg): New parameters: X and NEW_DST.
Remove the SPARSE_MODE parameter.  Update caller.
Perform POSIX-mandated (for cp) open-with-O_WRONLY|O_TRUNC when
the regular destination file exists;  upon failure, unlink
that existing file, then open again, but with O_WRONLY|O_CREAT.
(copy_internal): `force' in not related to interactive; remove
the conjunct.
Remove the entire `else if (x->force)' block;  justifying
removal of the non-directory part is easy:  POSIX requires we try
to open an existing regular file, so we can't unlink it beforehand.
The part that changes the mode on a directory to allow overwriting
isn't necessary.
2000-08-27 09:30:00 +00:00
.
2000-08-26 15:40:01 +00:00
.
2000-08-26 15:39:39 +00:00
2000-07-11 22:44:26 +00:00
.
2000-08-26 22:24:50 +00:00
1998-08-13 04:06:52 +00:00
.
2000-08-24 08:40:47 +00:00
1998-05-03 20:46:29 +00:00
1999-01-17 13:53:32 +00:00
.
1997-02-04 03:29:06 +00:00
2000-08-20 22:46:16 +00:00
2000-08-24 11:36:28 +00:00
S
Description
GNU Coreutils
GPL-3.0
48 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 55.1%
Shell 29.1%
Perl 11.6%
Makefile 2.2%
M4 0.9%
Other 1.1%