Changeset 882 in openpam


Ignore:
Timestamp:
Jan 9, 2016, 6:41:46 PM (5 years ago)
Author:
Dag-Erling Smørgrav
Message:

Set an upper limit to the number of codes generated by the calc command.

Location:
trunk/bin/oathkey
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/oathkey/oathkey.1

    r868 r882  
    2929.\" $Id$
    3030.\"
    31 .Dd October 23, 2015
     31.Dd January 9, 2016
    3232.Dt OATHKEY 1
    3333.Os
     
    7979If a count is specified, compute and display
    8080.Ar count
    81 codes in total, starting with the current code.
     81codes in total, starting with the current code, up to a maximum of
     821,000 codes.
    8283If writeback mode is enabled, the user's keyfile is updated to prevent
    8384reuse.
  • trunk/bin/oathkey/oathkey.c

    r870 r882  
    298298        if (argc > 0) {
    299299                n = strtoul(argv[0], &end, 10);
    300                 if (end == argv[0] || *end != '\0' || n < 1)
     300                if (end == argv[0] || *end != '\0' || n < 1 || n > 1000)
    301301                        return (RET_USAGE);
    302302        } else {
Note: See TracChangeset for help on using the changeset viewer.