Log the TSID even if it is not a simple session ID.

This commit is contained in:
Todd C. Miller
2011-03-11 12:11:05 -05:00
parent 9660f08e32
commit 383aef00b1
5 changed files with 18 additions and 10 deletions

View File

@@ -73,6 +73,10 @@ fill_seq(char *str, size_t strsize)
{
int len;
/* XXX - sessid should be static to fill_seq */
if (sudo_user.sessid[0] == '\0')
io_nextid(def_iolog_dir, sudo_user.sessid);
/* Path is of the form /var/log/sudo-io/00/00/01. */
len = snprintf(str, strsize, "%c%c/%c%c/%c%c", sudo_user.sessid[0],
sudo_user.sessid[1], sudo_user.sessid[2], sudo_user.sessid[3],