Jim Meyering dc404c4107 (copy_reg): New parameter, SOURCE_STATS.
(do_move): Update caller.
(movefile): Take new boolean parameter, DEST_IS_DIR,
to save a stat per moved file when the destination is a directory.
(main): Call movefile with additional argument.
(strip_trailing_slashes_2): New function.
(movefile): Remove trailing slashes from dest.  Otherwise, stat ("b/")
fails with ENOTDIR on systems including Linux w/libc 2.0.30.
Reproduce with `rm -rf a b; mkdir a; touch b; ./mv a b/'.
(do_move): Fix misleading comment.
1997-06-29 22:21:42 +00:00
.
1997-06-29 03:27:24 +00:00
.
1997-06-29 13:52:16 +00:00
1997-06-29 21:24:26 +00:00
1997-02-02 16:05:43 +00:00
.
1997-06-29 20:24:27 +00:00
.
1997-03-13 03:54:05 +00:00
.
1997-06-25 17:01:22 +00:00
.
1997-02-04 03:29:06 +00:00
1997-06-03 20:01:14 +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%