summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-11 04:07:16 +0000
committerJim Meyering <jim@meyering.net>1998-05-11 04:07:16 +0000
commit859bfc78b10accd87729925e3cb3d9f45aae951b (patch)
treebc3c2e468d93c9cbf62f88ad14eed6490e2db8f0 /src/cp.c
parent21ae3d911c89f6e656e249b3a3d5b8fc282eea64 (diff)
downloadcoreutils-859bfc78b10accd87729925e3cb3d9f45aae951b.tar.xz
reflect additional parameter to copy
initialize new member: move_mode.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index be7c91a25..f3c239073 100644
--- 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;