2
0
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:
Todd C. Miller
2012-02-06 10:56:39 -05:00
parent b28dfa5011
commit 8c1d8a7b15
7 changed files with 128 additions and 2 deletions

View File

@@ -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