From 39da0cbc3ba99325d7ce043e19c37245ea341d66 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 22 Sep 2000 19:30:29 +0000 Subject: [PATCH] (cp_option_init): Once again make it so install always unlinks an existing destination before trying to open it for writing. Otherwise, installing onto a running shared library would make the running program malfunction. --- src/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.c b/src/install.c index 0b8a7f4..f7ee15e 100644 --- a/src/install.c +++ b/src/install.c @@ -189,8 +189,8 @@ cp_option_init (struct cp_options *x) { x->copy_as_regular = 1; x->dereference = DEREF_ALWAYS; - x->unlink_dest_before_opening = 0; - x->unlink_dest_after_failed_open = 1; + x->unlink_dest_before_opening = 1; + x->unlink_dest_after_failed_open = 0; /* If unlink fails, try to proceed anyway. */ x->failed_unlink_is_fatal = 0; -- 2.7.4