mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Adapt check_iolog_path to sessid changes
This commit is contained in:
parent
8653ccc809
commit
bf5f17bd63
@ -49,6 +49,8 @@
|
||||
struct sudo_user sudo_user;
|
||||
struct passwd *list_pw;
|
||||
|
||||
static char sessid[7];
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
@ -136,7 +138,7 @@ main(int argc, char *argv[])
|
||||
|
||||
switch (state) {
|
||||
case 0:
|
||||
strlcpy(sudo_user.sessid, line, sizeof(sudo_user.sessid));
|
||||
strlcpy(sessid, line, sizeof(sessid));
|
||||
break;
|
||||
case 1:
|
||||
if (user_name != NULL)
|
||||
@ -191,6 +193,11 @@ main(int argc, char *argv[])
|
||||
exit(errors);
|
||||
}
|
||||
|
||||
void io_nextid(char *iolog_dir, char *id)
|
||||
{
|
||||
memcpy(id, sessid, sizeof(id));
|
||||
}
|
||||
|
||||
void
|
||||
cleanup(int gotsig)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user