Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2007 15:41:28 +0600
From:      "Denis Eremenko <moonshade@pnhz.kz>" <moonshade@pnhz.kz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   bin/118260: bin: more informative error message for install(1)
Message-ID:  <1196070088.89863@abyss.pnhz.kz>
Resent-Message-ID: <200711260950.lAQ9o4k4021485@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1196070088.89863>