Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2008 15:10:45 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r183979 - head/usr.sbin/pkg_install/add
Message-ID:  <200810171510.m9HFAjWf091325@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Oct 17 15:10:45 2008
New Revision: 183979
URL: http://svn.freebsd.org/changeset/base/183979

Log:
  Display usage when pkg_add is called with no arguments.
  
  PR:		bin/121093
  Submitted by:	volker
  Approved by:	portmgr (linimon)
  MFC after:	3 days

Modified:
  head/usr.sbin/pkg_install/add/main.c

Modified: head/usr.sbin/pkg_install/add/main.c
==============================================================================
--- head/usr.sbin/pkg_install/add/main.c	Fri Oct 17 15:06:34 2008	(r183978)
+++ head/usr.sbin/pkg_install/add/main.c	Fri Oct 17 15:10:45 2008	(r183979)
@@ -259,7 +259,7 @@ main(int argc, char **argv)
 	}
     }
     /* If no packages, yelp */
-    else if (!ch) {
+    if (!ch) {
 	warnx("missing package name(s)");
 	usage();
     }



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