diff options
author | Matt Kraai | 2000-08-06 15:36:50 +0000 |
---|---|---|
committer | Matt Kraai | 2000-08-06 15:36:50 +0000 |
commit | adbf018dc469d808fc0ca77f91bf37a871219d97 (patch) | |
tree | 07ece14f5727bc9674d23be267b26f26d7330a6d /cp_mv.c | |
parent | deb95f69b6afab4b9e81cb8b2d63ba98469d1622 (diff) | |
download | busybox-adbf018dc469d808fc0ca77f91bf37a871219d97.zip busybox-adbf018dc469d808fc0ca77f91bf37a871219d97.tar.gz |
We complained if the total number of arguments was greater than 3 and
the destination wasn't a directory. We should only complain if the
there are multiple sources and target isn't a directory.
Diffstat (limited to 'cp_mv.c')
-rw-r--r-- | cp_mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ extern int cp_mv_main(int argc, char **argv) goto exit_false; destDirFlag = isDirectory(baseDestName, TRUE, &destStatBuf); - if ((argc > 3) && destDirFlag == FALSE) { + if (argc - optind > 2 && destDirFlag == FALSE) { errorMsg(not_a_directory, baseDestName); goto exit_false; } |