(cp_option_init): Once again make it so install always
authorJim Meyering <jim@meyering.net>
Fri, 22 Sep 2000 19:30:29 +0000 (19:30 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 22 Sep 2000 19:30:29 +0000 (19:30 +0000)
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

index 0b8a7f4..f7ee15e 100644 (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;