From eb2947bbbd14a3231f61870496c6038c8cf81a92 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 6 Oct 1997 04:58:05 +0000 Subject: [PATCH] (cp_option_init): Initialize it. (main): Set to 1 for -a and for -p. --- src/cp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cp.c b/src/cp.c index e2436400e3..5a0d597124 100644 --- a/src/cp.c +++ b/src/cp.c @@ -587,6 +587,7 @@ cp_option_init (struct cp_options *x) x->myeuid = geteuid (); x->one_file_system = 0; x->preserve = 0; + x->require_preserve = 0; x->recursive = 0; x->sparse_mode = SPARSE_AUTO; x->symbolic_link = 0; @@ -647,6 +648,7 @@ main (int argc, char **argv) case 'a': /* Like -dpR. */ x.dereference = 0; x.preserve = 1; + x.require_preserve = 1; x.recursive = 1; x.copy_as_regular = 0; break; @@ -675,6 +677,7 @@ main (int argc, char **argv) case 'p': x.preserve = 1; + x.require_preserve = 1; break; case 'P': -- 2.47.3