diff options
author | edwin <edwin@FreeBSD.org> | 2007-12-25 00:40:32 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2007-12-25 00:40:32 +0000 |
commit | 75cfd086294c36db6dac8e29de531e727e07185d (patch) | |
tree | 4a18cc21132dde5eed6be6dcd9d9b23df954db78 /bin | |
parent | 372f968dbe5437228a5751d1676ffe95d441cd0b (diff) | |
download | FreeBSD-src-75cfd086294c36db6dac8e29de531e727e07185d.zip FreeBSD-src-75cfd086294c36db6dac8e29de531e727e07185d.tar.gz |
When copying multiple files to a directory, make sure that a proper
warning is given when the directory doesn't exist.
PR: bin/50656
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Approved by: grog@
Not reviewed by: grog@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index fcc2b76..4405605 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -211,7 +211,7 @@ main(int argc, char *argv[]) * Case (1). Target is not a directory. */ if (argc > 1) { - usage(); + warnx("Target is not a directory"); exit(1); } /* |