projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb95f6
)
We complained if the total number of arguments was greater than 3 and
author
Matt Kraai
<kraai@debian.org>
Sun, 6 Aug 2000 15:36:50 +0000
(15:36 -0000)
committer
Matt Kraai
<kraai@debian.org>
Sun, 6 Aug 2000 15:36:50 +0000
(15:36 -0000)
the destination wasn't a directory. We should only complain if the
there are multiple sources and target isn't a directory.
cp_mv.c
patch
|
blob
|
history
diff --git
a/cp_mv.c
b/cp_mv.c
index 4c3c7a32caebed55184686b528dfa4e2139b766f..5e1a8415eebaf430d94dc572d12fed918b0ee34a 100644
(file)
--- a/
cp_mv.c
+++ b/
cp_mv.c
@@
-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;
}