Fix handling of the "-l" argument for nfsdumpstate(8).

Submitted by:	zack.kirsch at isilon.com
MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2010-07-20 00:32:11 +00:00
parent ad09ad06bc
commit 1248463c17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210272

View file

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