Add keepopen arg to open_sudoers that open_sudoers can use to
indicate to the caller that the fd should not be closed when it is done with it. To be used by visudo to keep locked fds from being closed prematurely (and thus losing the lock).
This commit is contained in:
2
sudo.h
2
sudo.h
@@ -238,7 +238,7 @@ char *sudo_getepw __P((const struct passwd *));
|
||||
int pam_prep_user __P((struct passwd *));
|
||||
void zero_bytes __P((volatile VOID *, size_t));
|
||||
int gettime __P((struct timespec *));
|
||||
FILE *open_sudoers __P((const char *));
|
||||
FILE *open_sudoers __P((const char *, int *));
|
||||
YY_DECL;
|
||||
#ifdef HAVE_SYSTRACE
|
||||
void systrace_attach __P((pid_t));
|
||||
|
Reference in New Issue
Block a user