]> granicus.if.org Git - sudo/commitdiff
Use fromdate and todate as the keywords instead of from and to; the short
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 16 Sep 2009 13:36:29 +0000 (13:36 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 16 Sep 2009 13:36:29 +0000 (13:36 +0000)
forms will still be accepted.

sudoreplay.c

index acb7c115311dcb2ce1afb79ad0a0cfc5b2cb0a20..95e6bea23a8e2ab13dc13ded77f2759a6848e525 100644 (file)
@@ -390,7 +390,7 @@ parse_expr(headp, argv)
                goto bad;
            break;
        case 'f': /* from date */
-           if (strncmp(*av, "from", strlen(*av)) != 0)
+           if (strncmp(*av, "fromdate", strlen(*av)) != 0)
                goto bad;
            type = ST_FROMDATE;
            break;
@@ -407,7 +407,7 @@ parse_expr(headp, argv)
        case 't': /* tty or to date */
            if (*av[1] == '\0')
                errorx(1, "ambiguous expression \"%s\"", *av);
-           if (strncmp(*av, "to", strlen(*av)) == 0)
+           if (strncmp(*av, "todate", strlen(*av)) == 0)
                type = ST_TODATE;
            else if (strncmp(*av, "tty", strlen(*av)) == 0)
                type = ST_TTY;