(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.
This commit is contained in:
Jim Meyering
2000-09-22 19:30:29 +00:00
parent dffa52e11a
commit 39da0cbc3b
+2 -2
View File
@@ -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;