summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Johansson <jj@cvs.openbsd.org>2000-12-22 11:53:18 +0000
committerJanne Johansson <jj@cvs.openbsd.org>2000-12-22 11:53:18 +0000
commit6b09814af3f34dd0ebd099cc70491d7e9b27460e (patch)
tree375c879e71fb6187ec32b2f8bcab9759908d020d
parentcf93a53d56da703aa38d6a3437310fe8c4f3f3af (diff)
Complain about, and name the missing directory when trying to install
multiple files into a non-existing directory. art@ and hin@ ok.
-rw-r--r--usr.bin/xinstall/xinstall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 788ce5c4127..c755197500e 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xinstall.c,v 1.24 2000/10/12 10:22:20 art Exp $ */
+/* $OpenBSD: xinstall.c,v 1.25 2000/12/22 11:53:17 jj Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#endif
-static char rcsid[] = "$OpenBSD: xinstall.c,v 1.24 2000/10/12 10:22:20 art Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.25 2000/12/22 11:53:17 jj Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -193,7 +193,7 @@ main(argc, argv)
/* can't do file1 file2 directory/file */
if (argc != 2)
- usage();
+ err(EX_OSERR, "Target: %s", argv[argc-1]);
if (!no_target) {
if (stat(*argv, &from_sb))