From: Todd C. Miller Date: Wed, 16 Sep 2009 13:36:29 +0000 (+0000) Subject: Use fromdate and todate as the keywords instead of from and to; the short X-Git-Tag: SUDO_1_7_3~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=705d23073950e960d470c71a34ce451720bacabe;p=sudo Use fromdate and todate as the keywords instead of from and to; the short forms will still be accepted. --- diff --git a/sudoreplay.c b/sudoreplay.c index acb7c1153..95e6bea23 100644 --- a/sudoreplay.c +++ b/sudoreplay.c @@ -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;