misc/121093: pkg_add(1) does nothing and returns zero if called
without arguments
Volker
volker at vwsoft.com
Tue Feb 26 02:20:04 UTC 2008
The following reply was made to PR misc/121093; it has been noted by GNATS.
From: Volker <volker at vwsoft.com>
To: bug-followup at FreeBSD.org, jtsn at 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--
More information about the freebsd-bugs
mailing list