2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +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:
Todd C. Miller
2013-12-01 19:12:21 -07:00
parent 902215a8c0
commit 0d81263e26
21 changed files with 147 additions and 108 deletions

View File

@@ -282,7 +282,6 @@ extern const char *__progname;
# define getprogname() (__progname)
# else
const char *getprogname(void);
void setprogname(const char *);
# endif /* HAVE___PROGNAME */
#endif /* !HAVE_GETPROGNAME */
@@ -447,5 +446,6 @@ char *strsignal(int);
#ifndef HAVE_SIG2STR
int sig2str(int, char *);
#endif
void initprogname(const char *);
#endif /* _SUDO_MISSING_H */