aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-06-16 04:06:58 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-06-16 04:06:58 +0000
commit9a81395d08cd8fe5dce722e20591cc5ad66d2dff (patch)
tree62257267063809043e999912d9318ffa92024219
parentc9cb13a07b961bdb85bfdca2eb980e0f74f0feea (diff)
Notes
-rw-r--r--bin/mv/mv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 43ca99cec1178..f8dc938533f56 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -336,7 +336,7 @@ copy(char *from, char *to)
int pid, status;
if ((pid = fork()) == 0) {
- execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to,
+ execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", "--", from, to,
(char *)NULL);
warn("%s", _PATH_CP);
_exit(1);
@@ -355,7 +355,7 @@ copy(char *from, char *to)
return (1);
}
if (!(pid = vfork())) {
- execl(_PATH_RM, "mv", "-rf", from, (char *)NULL);
+ execl(_PATH_RM, "mv", "-rf", "--", from, (char *)NULL);
warn("%s", _PATH_RM);
_exit(1);
}