From 8988b9122ef9bb410fcc9a9a21846f20b168c351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 25 Nov 2014 14:01:58 +0000 Subject: [PATCH] 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 --- bin/oathkey/oathkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/oathkey/oathkey.c b/bin/oathkey/oathkey.c index 5506896..1a1f543 100644 --- a/bin/oathkey/oathkey.c +++ b/bin/oathkey/oathkey.c @@ -358,7 +358,7 @@ static void usage(void) { fprintf(stderr, - "usage: oathkey [-hvw] [-u user] [-k keyfile] \n" + "usage: oathkey [-hrvw] [-u user] [-k keyfile] \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;