mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Make a copy of the struct passwd in exec_setup() to make sure nothing
in the policy init modifies it.
This commit is contained in:
@@ -335,6 +335,9 @@ int mkstemps(char *, int);
|
||||
#ifndef HAVE_NANOSLEEP
|
||||
int nanosleep(const struct timespec *, struct timespec *);
|
||||
#endif
|
||||
#ifndef HAVE_PW_DUP
|
||||
struct passwd *pw_dup(const struct passwd *);
|
||||
#endif
|
||||
#ifndef HAVE_SETENV
|
||||
int setenv(const char *, const char *, int);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user