All pastes #806272 Raw Edit

Someone

public text v1 · immutable
·published 2007-12-05 02:15 UTC
rendered paste body
--- /usr/src/usr.bin/xinstall/xinstall.c	Wed Jan 26 01:34:57 2005
+++ xinstall.c	Wed Dec  5 10:53:11 2007
@@ -216,7 +216,12 @@
 
 	/* can't do file1 file2 directory/file */
 	if (argc != 2) {
-		warnx("wrong number or types of arguments");
+		if (no_target)
+			warnx("target directory `%s' does not exist",
+			    argv[argc - 1]);
+		else
+			warnx("target `%s' is not a directory",
+			    argv[argc - 1]);
 		usage();
 	}