coreutils/tests/cp
Pádraig Brady f179919848 cp: improve status message when omitting directories
* src/copy.h (cp_options): Add a new flag for install(1).
* src/copy.c (copy_internal): For cp, also output remediation
advice which also indicates why directories aren't copied by default.
The message is unchanged for install(1).
* src/cp.c (cp_option_init): Init install_mode to false.
* src/mv.c (cp_option_init): Likewise.
* src/install.c (cp_option_init): Init install_mode to true.
* tests/install/basic-1.sh: Add a test case.
* tests/cp/link-deref.sh: Adjust test case.
Fixes http://bugs.gnu.org/24958
2016-11-19 17:05:33 +00:00
..
abuse.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
acl.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
attr-existing.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
backup-1.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
backup-dir.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
backup-is-src.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
capability.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-a-selinux.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-deref.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-HL.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-i.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-mv-backup.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-mv-enotsup-xattr.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
cp-parents.sh cp: with --parents --no-preserve=mode don't copy dir perms 2016-08-18 13:54:48 +01:00
deref-slink.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
dir-rm-dest.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
dir-slash.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
dir-vs-file.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
existing-perm-dir.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
existing-perm-race.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
fail-perm.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
fiemap-2.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
fiemap-extents.sh tests: support older fallocate number formats 2016-01-15 14:14:05 +00:00
fiemap-FMR.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
fiemap-perf.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
file-perm-race.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
into-self.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
link-deref.sh cp: improve status message when omitting directories 2016-11-19 17:05:33 +00:00
link-heap.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
link-no-deref.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
link-preserve.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
link-symlink.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
link.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
nfs-removal-race.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
no-ctx.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
no-deref-link1.sh tests: use "returns_" rather than explicit comparison with "$?" 2016-11-13 08:26:19 -08:00
no-deref-link2.sh tests: use "returns_" rather than explicit comparison with "$?" 2016-11-13 08:26:19 -08:00
no-deref-link3.sh tests: use "returns_" rather than explicit comparison with "$?" 2016-11-13 08:26:19 -08:00
parent-perm-race.sh tests: fix recent false failure due to a race 2016-04-20 17:08:36 +01:00
parent-perm.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
perm.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
preserve-2.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
preserve-gid.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
preserve-link.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
preserve-mode.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
preserve-slink-time.sh tests: avoid false failure in preserve-slink-time.sh on GPFS 2016-01-19 16:09:09 +00:00
proc-short-read.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
proc-zero-len.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
r-vs-symlink.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
reflink-auto.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
reflink-perm.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
same-file.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
slink-2-slink.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
sparse-fiemap.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
sparse-to-pipe.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
sparse.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
special-bits.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
special-f.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
src-base-dot.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
symlink-slash.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
thru-dangling.sh maint: update all copyright year number ranges 2016-01-01 14:10:41 +00:00
trailing-slash mv and "cp -r" no longer fail when invoked with two arguments 2006-09-08 17:08:53 +00:00