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:
parent
da2c1e7120
commit
8988b9122e
|
@ -358,7 +358,7 @@ static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"usage: oathkey [-hvw] [-u user] [-k keyfile] <command>\n"
|
"usage: oathkey [-hrvw] [-u user] [-k keyfile] <command>\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Commands:\n"
|
"Commands:\n"
|
||||||
" calc Print the current code\n"
|
" calc Print the current code\n"
|
||||||
|
@ -382,7 +382,7 @@ main(int argc, char *argv[])
|
||||||
/*
|
/*
|
||||||
* Parse command-line options
|
* Parse command-line options
|
||||||
*/
|
*/
|
||||||
while ((opt = getopt(argc, argv, "hk:u:vw")) != -1)
|
while ((opt = getopt(argc, argv, "hk:ru:vw")) != -1)
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'k':
|
case 'k':
|
||||||
keyfile = optarg;
|
keyfile = optarg;
|
||||||
|
|
Loading…
Reference in a new issue