Date: Tue, 26 Feb 2008 02:20:04 GMT From: Volker <volker@vwsoft.com> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/121093: pkg_add(1) does nothing and returns zero if called without arguments Message-ID: <200802260220.m1Q2K4dZ011121@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/121093; it has been noted by GNATS. From: Volker <volker@vwsoft.com> To: bug-followup@FreeBSD.org, jtsn@gmx.de Cc: Subject: Re: misc/121093: pkg_add(1) does nothing and returns zero if called without arguments Date: Tue, 26 Feb 2008 03:09:23 +0100 This is a multi-part message in MIME format. --------------090208000807030901070300 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Joseph, using the attached patch, `pkg_add' now gives: pkg_add: missing package name(s) usage: pkg_add [-vInfFrRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir] pkg-name [pkg-name ...] which I think should be correct behavior. The patch may be a few lines off but should otherwise apply cleanly. --------------090208000807030901070300 Content-Type: text/x-patch; name="pkg_add.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pkg_add.diff" --- usr.sbin/pkg_install/add/main.c.orig 2008-02-26 03:02:35.000000000 +0100 +++ usr.sbin/pkg_install/add/main.c 2008-02-26 03:02:48.000000000 +0100 @@ -238,7 +238,7 @@ } } /* If no packages, yelp */ - else if (!ch) { + if (!ch) { warnx("missing package name(s)"); usage(); } --------------090208000807030901070300--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802260220.m1Q2K4dZ011121>