Use the expanded io log dir when updating the sequence number.

Includes a workaround for older versions of sudo where the
sequence number was stored in the unexpanded io log dir.
This commit is contained in:
Todd C. Miller
2012-06-15 12:33:12 -04:00
parent 85c6078659
commit 203abd98b9
4 changed files with 71 additions and 34 deletions

View File

@@ -296,7 +296,7 @@ int atobool(const char *str);
int get_boottime(struct timeval *);
/* iolog.c */
void io_nextid(char *iolog_dir, char sessid[7]);
void io_nextid(char *iolog_dir, char *iolog_dir_fallback, char sessid[7]);
/* iolog_path.c */
char *expand_iolog_path(const char *prefix, const char *dir, const char *file,