Jim Meyering 8656b00f6d (get_dest_mode): Rename from new_nondir_mode.
Honor the umask for `cp', but not for `mv' or `cp -p'.
(copy_reg): New 4th parameter, dst_mode.  Pass it as 3rd arg. to open.
(copy_internal): Change type of locals `src_mode' and `src_type' from
int to mode_t.
Remove unnecessary local `fix_mode'.
Combine two if-stmts into one.
Pass `src_mode' as 4th arg to copy_reg.
If we've just created a new regular file, return early, skipping the
chmod step.  copy_reg now sets permissions of such files upon creation.
Use get_dest_mode, so there's just one chmod call here.
2000-08-13 13:03:07 +00:00
2000-08-07 17:07:19 +00:00
2000-08-12 13:27:29 +00:00
2000-07-11 22:44:26 +00:00
2000-08-12 13:25:33 +00:00
1998-08-13 04:06:52 +00:00
.
2000-08-12 13:24:44 +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-07-17 20:47:53 +00:00
2000-07-30 20:25:31 +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%