summaryrefslogtreecommitdiffstats
path: root/commands/memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/memcpy.c')
-rw-r--r--commands/memcpy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/memcpy.c b/commands/memcpy.c
index 5f0047f..b2cea8c 100644
--- a/commands/memcpy.c
+++ b/commands/memcpy.c
@@ -41,7 +41,8 @@ static int do_memcpy(int argc, char *argv[])
int ret = 0;
char *buf;
- if (memcpy_parse_options(argc, argv, &sourcefd, &destfd, &count) < 0)
+ if (memcpy_parse_options(argc, argv, &sourcefd, &destfd, &count,
+ 0, O_WRONLY | O_CREAT) < 0)
return 1;
buf = xmalloc(RW_BUF_SIZE);