Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 00:32:11 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210272 - head/usr.sbin/nfsdumpstate
Message-ID:  <201007200032.o6K0WBm6031700@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Tue Jul 20 00:32:11 2010
New Revision: 210272
URL: http://svn.freebsd.org/changeset/base/210272

Log:
  Fix handling of the "-l" argument for nfsdumpstate(8).
  
  Submitted by:	zack.kirsch at isilon.com
  MFC after:	2 weeks

Modified:
  head/usr.sbin/nfsdumpstate/nfsdumpstate.c

Modified: head/usr.sbin/nfsdumpstate/nfsdumpstate.c
==============================================================================
--- head/usr.sbin/nfsdumpstate/nfsdumpstate.c	Mon Jul 19 23:48:03 2010	(r210271)
+++ head/usr.sbin/nfsdumpstate/nfsdumpstate.c	Tue Jul 20 00:32:11 2010	(r210272)
@@ -76,7 +76,7 @@ main(int argc, char **argv)
 		errx(1, "nfsd not loaded - self terminating");
 	openstate = 0;
 	lockfile = NULL;
-	while ((ch = getopt(argc, argv, "ol")) != -1)
+	while ((ch = getopt(argc, argv, "ol:")) != -1)
 		switch (ch) {
 		case 'o':
 			openstate = 1;



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