bin/118260: bin: more informative error message for install(1)

Denis Eremenko <moonshade at pnhz.kz> moonshade at pnhz.kz
Mon Nov 26 01:50:05 PST 2007


>Number:         118260
>Category:       bin
>Synopsis:       bin: more informative error message for install(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 26 09:50:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Denis Eremenko <moonshade at pnhz.kz>
>Release:        FreeBSD 6.3-PRERELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.3-PRERELEASE #0: Mon Nov 19 17:10:51 ALMT 2007
    moonshade at abyss.pnhz.kz:/usr/obj/data/os/FreeBSD/src/6/src/sys/ABYSS-6



>Description:


More informative error message for install(1) in "install file1 ... fileN directory" case.
Originally it says "wrong number or types of arguments" and it takes some time to understand that "directory" is simply missing.



>How-To-Repeat:





>Fix:


--- patch-xinstall begins here ---
--- xinstall.c.orig	2007-11-26 14:57:23.000000000 +0600
+++ xinstall.c	2007-11-26 15:22:38.000000000 +0600
@@ -216,7 +216,7 @@
 
 	/* can't do file1 file2 directory/file */
 	if (argc != 2) {
-		warnx("wrong number or types of arguments");
+		warnx("wrong number or types of arguments, target does not exist or not a directory");
 		usage();
 	}
 
--- patch-xinstall ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list