2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Make "this" and "next" qualifiers work a bit better. There is still

room for improvement as "this week" will use the current time instead
of the beginning of the week.  That's a separate issue though.
This commit is contained in:
Todd C. Miller 2013-09-09 16:41:27 -06:00
parent 4fbcde304d
commit e59d5624d9
3 changed files with 10 additions and 4 deletions

6
NEWS
View File

@ -66,6 +66,12 @@ What's new in Sudo 1.8.8?
to the I/O log timing file are two greater than they should be. to the I/O log timing file are two greater than they should be.
Sudoreplay now contains a work-around to parse those files. Sudoreplay now contains a work-around to parse those files.
* In sudoreplay's list mode, the "this" and "next" qualifiers in
"fromdate" or "todate" expressions now behave more sensibly.
Previously, they would often match a date that was "one more"
than expected. For example "this week" now matches the current
week and not the following week.
What's new in Sudo 1.8.7? What's new in Sudo 1.8.7?
* The non-Unix group plugin is now supported when sudoers data * The non-Unix group plugin is now supported when sudoers data

View File

@ -443,8 +443,8 @@ static TABLE const OtherTable[] = {
{ "today", tMINUTE_UNIT, 0 }, { "today", tMINUTE_UNIT, 0 },
{ "now", tMINUTE_UNIT, 0 }, { "now", tMINUTE_UNIT, 0 },
{ "last", tUNUMBER, -1 }, { "last", tUNUMBER, -1 },
{ "this", tMINUTE_UNIT, 0 }, { "this", tUNUMBER, 0 },
{ "next", tUNUMBER, 2 }, { "next", tUNUMBER, 1 },
{ "first", tUNUMBER, 1 }, { "first", tUNUMBER, 1 },
/* { "second", tUNUMBER, 2 }, */ /* { "second", tUNUMBER, 2 }, */
{ "third", tUNUMBER, 3 }, { "third", tUNUMBER, 3 },

View File

@ -375,8 +375,8 @@ static TABLE const OtherTable[] = {
{ "today", tMINUTE_UNIT, 0 }, { "today", tMINUTE_UNIT, 0 },
{ "now", tMINUTE_UNIT, 0 }, { "now", tMINUTE_UNIT, 0 },
{ "last", tUNUMBER, -1 }, { "last", tUNUMBER, -1 },
{ "this", tMINUTE_UNIT, 0 }, { "this", tUNUMBER, 0 },
{ "next", tUNUMBER, 2 }, { "next", tUNUMBER, 1 },
{ "first", tUNUMBER, 1 }, { "first", tUNUMBER, 1 },
/* { "second", tUNUMBER, 2 }, */ /* { "second", tUNUMBER, 2 }, */
{ "third", tUNUMBER, 3 }, { "third", tUNUMBER, 3 },