diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-12-25 00:40:32 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-12-25 00:40:32 +0000 |
commit | 0d5ee457ad44ade6b48299e3328361094ff0e026 (patch) | |
tree | 4a18cc21132dde5eed6be6dcd9d9b23df954db78 /bin | |
parent | 0c3e489dce24a1a77e4bf2994e4ea6f848fe2be1 (diff) | |
download | src-0d5ee457ad44ade6b48299e3328361094ff0e026.tar.gz src-0d5ee457ad44ade6b48299e3328361094ff0e026.zip |
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@
Notes
Notes:
svn path=/head/; revision=174890
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 fcc2b7668458..44056058287f 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); } /* |