mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Instead of setprogname(), add initprogname() which gets the program
name for getprogname() using /proc or pstat() if possible.
This commit is contained in:
@@ -185,7 +185,7 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv, char ***settingsp,
|
||||
|
||||
env_add = emalloc2(env_size, sizeof(char *));
|
||||
|
||||
/* Pass progname to plugin so it can call setprogname() */
|
||||
/* Pass progname to plugin so it can call initprogname() */
|
||||
sudo_settings[ARG_PROGNAME].value = getprogname();
|
||||
|
||||
/* First, check to see if we were invoked as "sudoedit". */
|
||||
|
Reference in New Issue
Block a user