diff options
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/cp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c index d84b55ef..f6ffaf10 100644 --- a/toys/posix/cp.c +++ b/toys/posix/cp.c @@ -404,10 +404,8 @@ void cp_main(void) char *src = toys.optargs[i], *trail = src; int rc = 1; - if (CFG_MV && toys.which->name[0] == 'm') { - while (*++trail); - if (*--trail == '/') *trail = 0; - } + while (*++trail); + if (*--trail == '/') *trail = 0; if (destdir) { char *s = FLAG(D) ? dirname(src) : getbasename(src); |