summaryrefslogtreecommitdiff
path: root/src/copy.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-10-06 04:58:26 +0000
committerJim Meyering <jim@meyering.net>1997-10-06 04:58:26 +0000
commit7bff8c9b501a02a553067a53e259cb265942ca0e (patch)
tree3cfe96550db33d728a6280228f9c3cae568d2249 /src/copy.h
parenteb2947bbbd14a3231f61870496c6038c8cf81a92 (diff)
downloadcoreutils-7bff8c9b501a02a553067a53e259cb265942ca0e.tar.xz
(struct cp_options): New field: require_preserve.
Diffstat (limited to 'src/copy.h')
-rw-r--r--src/copy.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/copy.h b/src/copy.h
index 7bbe88d80..c8cfb9928 100644
--- a/src/copy.h
+++ b/src/copy.h
@@ -49,10 +49,15 @@ struct cp_options
on different filesystems from the one we started on. */
int one_file_system;
- /* If nonzero, give the copies the original files' permissions,
+ /* If nonzero, attempt to give the copies the original files' permissions,
ownership, and timestamps. */
int preserve;
+ /* If nonzero and any of the above (for preserve) file attributes cannot
+ be applied to a destination file, treat it as a failure. E.g. cp -p
+ requires this be nonzero, mv requires it be zero. */
+ int require_preserve;
+
/* If nonzero, copy directories recursively and copy special files
as themselves rather than copying their contents. */
int recursive;