(struct cp_options) [force]: Remove member.
authorJim Meyering <jim@meyering.net>
Sun, 3 Sep 2000 13:04:44 +0000 (13:04 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 3 Sep 2000 13:04:44 +0000 (13:04 +0000)
[unlink_dest_before_opening]: Add member.
[unlink_dest_after_failed_open]: Add member.

src/copy.h

index 81d916f89d93d1c451f9ae01ae84fcb22397aa54..5abc76be0be77e7bf4c0c50ad40a9feab442c201 100644 (file)
@@ -46,8 +46,13 @@ struct cp_options
   /* If nonzero, dereference symbolic links (copy the files they point to). */
   enum Dereference_symlink dereference;
 
-  /* If nonzero, remove existing destination nondirectories. */
-  int force;
+  /* If nonzero, remove each existing destination nondirectory before
+     trying to open it. */
+  int unlink_dest_before_opening;
+
+  /* If nonzero, first try to open each existing destination nondirectory,
+     then, if the open fails, unlink and try again.  */
+  int unlink_dest_after_failed_open;
 
   /* Setting this member is meaningful only if FORCE is also set.
      If nonzero, copy returns nonzero upon failed unlink.