Commit Graph

31 Commits

Author SHA1 Message Date
Todd C. Miller
8cb463adec Move alloc.c protos into alloc.h 2009-10-17 12:17:16 +00:00
Todd C. Miller
8c6960e7a8 Move prototypes for missing libc functions to missing.h 2009-10-17 00:03:00 +00:00
Todd C. Miller
55434759f6 Add support for pausing and changing the speed in interactive mode. 2009-10-07 01:07:54 +00:00
Todd C. Miller
c8e048c208 Add missing protos 2009-10-06 13:19:20 +00:00
Todd C. Miller
5636a93f58 Use cbreak mode instead of raw mode and add signal handlers to restore
the tty on interrupt.
2009-09-30 02:13:19 +00:00
Todd C. Miller
0d9e1e7b6d Instead of messing with line endings, just set terminal to raw mode
in sudoreplay.
2009-09-27 22:39:40 +00:00
Todd C. Miller
d111b0d9bb Use _PATH_SUDO_TRANSCRIPT instead of _PATH_SUDO_SESSDIR 2009-09-26 15:41:14 +00:00
Todd C. Miller
6794ef5323 Move nanosleep() emulation into its own file
Check librt.a for nanosleep if we don't find it in libc
2009-09-19 17:44:34 +00:00
Todd C. Miller
7de6bbcfd5 Use unbuffered I/O when writing to stdout and make sure we write
the entire buffer.
2009-09-19 00:21:27 +00:00
Todd C. Miller
6744c573b9 Only use max_wait if it is non-zero 2009-09-18 14:53:51 +00:00
Todd C. Miller
680351cb9b Fix nanosleep emulation 2009-09-18 13:18:30 +00:00
Todd C. Miller
b9f4db8951 Add protos for missing libc bits 2009-09-18 13:08:20 +00:00
Todd C. Miller
89fa08f7e6 Print year when formatting log line 2009-09-18 12:12:35 +00:00
Todd C. Miller
fb0fb0380b Fix getline return value check. 2009-09-18 01:21:12 +00:00
Todd C. Miller
40114c9ba1 Use getline() if the system has it, else use provide our own for sudoreplay. 2009-09-18 01:16:56 +00:00
Todd C. Miller
1a537514dc Make sudo_getln() behave more like glibc getline. 2009-09-17 10:22:03 +00:00
Todd C. Miller
4421db631f Use get_timestr() and make the -l output look like the regular sudo log. 2009-09-17 09:56:04 +00:00
Todd C. Miller
705d230739 Use fromdate and todate as the keywords instead of from and to; the short
forms will still be accepted.
2009-09-16 13:36:29 +00:00
Todd C. Miller
f2b3a0e6cd Fix reading long liensin sudo_getln() 2009-09-16 12:01:32 +00:00
Todd C. Miller
a418f78117 Log the cwd in the script log file.
Add sudo_getln() to read arbitrarily long lines.
2009-09-16 11:49:40 +00:00
Todd C. Miller
789d716017 Add to and from perdicates (date ranges); needs documentation 2009-09-15 00:24:43 +00:00
Todd C. Miller
65500fa959 Check more than just the first character of a predicate 2009-09-13 22:36:34 +00:00
Todd C. Miller
3724c2e900 Implement search expressions in sudoreplay similar in concept to
what find or tcpdump uses.  TODO: date ranges
2009-09-13 22:02:07 +00:00
Todd C. Miller
f798228a7f remove unused variable 2009-09-01 19:53:41 +00:00
Todd C. Miller
7ae1dae376 add -V (version) flag 2009-08-30 14:50:51 +00:00
Todd C. Miller
5dd8fe2fee Hook up max_wait. 2009-08-30 14:11:04 +00:00
Todd C. Miller
b9f38b2aca Use base36 number for the ID and store script files with paths like
/var/log/sudo-session/00/00/00{,.tim,.scr}.
This gives us 36^6 (2,176,782,336) unique IDs.
2009-08-30 11:22:53 +00:00
Todd C. Miller
9efd18b1bb Add support for selecting by pattern and tty when listing. 2009-08-23 13:33:26 +00:00
Todd C. Miller
30cfb7160e The beginnings of a list mode. 2009-08-17 14:17:08 +00:00
Todd C. Miller
20ad41f4d8 include error.h
first arg to nanotime is const
2009-08-16 15:12:16 +00:00
Todd C. Miller
e4be175113 Initial cut at sudoreplay; replay a sudo session. 2009-08-16 14:58:13 +00:00