reflect additional parameter to copy
authorJim Meyering <jim@meyering.net>
Mon, 11 May 1998 04:07:16 +0000 (04:07 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 11 May 1998 04:07:16 +0000 (04:07 +0000)
initialize new member: move_mode.

src/cp.c
src/install.c

index be7c91a..f3c2390 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -485,7 +485,7 @@ do_copy (int argc, char **argv, const struct cp_options *x)
          else
            {
              int unused;
-             ret |= copy (arg, dst_path, new_dst, x, &unused);
+             ret |= copy (arg, dst_path, new_dst, x, &unused, NULL);
              forget_all ();
 
              if (flag_path)
@@ -573,7 +573,7 @@ do_copy (int argc, char **argv, const struct cp_options *x)
          new_dest = dest;
        }
 
-      return copy (source, new_dest, new_dst, x, &unused);
+      return copy (source, new_dest, new_dst, x, &unused, NULL);
     }
   else
     {
@@ -598,6 +598,7 @@ cp_option_init (struct cp_options *x)
   x->hard_link = 0;
   x->interactive = 0;
   x->myeuid = geteuid ();
+  x->move_mode = 0;
   x->one_file_system = 0;
 
   x->preserve_owner_and_group = 0;
index 8d85881..f5a3ddb 100644 (file)
@@ -208,6 +208,7 @@ cp_option_init (struct cp_options *x)
 
   x->hard_link = 0;
   x->interactive = 0;
+  x->move_mode = 0;
   x->myeuid = geteuid ();
   x->one_file_system = 0;
   x->preserve_owner_and_group = 0;
@@ -476,7 +477,7 @@ copy_file (const char *from, const char *to, const struct cp_options *x)
       return 1;
     }
 
-  fail = copy (from, to, nonexistent_dst, x, &copy_into_self);
+  fail = copy (from, to, nonexistent_dst, x, &copy_into_self, NULL);
 
   return fail;
 }