summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-22 19:30:29 +0000
committerJim Meyering <jim@meyering.net>2000-09-22 19:30:29 +0000
commit39da0cbc3ba99325d7ce043e19c37245ea341d66 (patch)
tree62ac0af0280589990ec2e415b550aed6d44db17d /src
parentdffa52e11aed00805c65aa6441b1fc869eb99845 (diff)
downloadcoreutils-39da0cbc3ba99325d7ce043e19c37245ea341d66.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 0b8a7f46b..f7ee15e6c 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;