The read-only option that was implemented in r841 was inaccessible

because the getopt(3) spec had not been updated to include it.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@844 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2014-11-25 14:01:58 +00:00
parent da2c1e7120
commit 8988b9122e
1 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ static void
usage(void)
{
fprintf(stderr,
"usage: oathkey [-hvw] [-u user] [-k keyfile] <command>\n"
"usage: oathkey [-hrvw] [-u user] [-k keyfile] <command>\n"
"\n"
"Commands:\n"
" calc Print the current code\n"
@ -382,7 +382,7 @@ main(int argc, char *argv[])
/*
* Parse command-line options
*/
while ((opt = getopt(argc, argv, "hk:u:vw")) != -1)
while ((opt = getopt(argc, argv, "hk:ru:vw")) != -1)
switch (opt) {
case 'k':
keyfile = optarg;