mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +00:00
added delc for clean_envp() and Envp
This commit is contained in:
24
sudo.h
24
sudo.h
@@ -56,6 +56,16 @@
|
|||||||
rsh hostname "sudo whoami" and see if getpass
|
rsh hostname "sudo whoami" and see if getpass
|
||||||
will read from stdin as well as /dev/tty.
|
will read from stdin as well as /dev/tty.
|
||||||
If not, define BROKEN_GETPASS.
|
If not, define BROKEN_GETPASS.
|
||||||
|
|
||||||
|
USE_CWD - if your os has getcwd() and not getwd()
|
||||||
|
you should define this (done automatically
|
||||||
|
for hpux)
|
||||||
|
|
||||||
|
NEED_STRDUP - if your os lacks strdup(3) you need to
|
||||||
|
define this
|
||||||
|
|
||||||
|
SHORT_MESSAGE - if you don't want a copyright notice when
|
||||||
|
someone runs sudo for the first time
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -110,7 +120,8 @@
|
|||||||
#define MAXHOSTNAMELEN 64
|
#define MAXHOSTNAMELEN 64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAXCOMMANDLENGTH 0x030
|
/* 48 chars is not enough */
|
||||||
|
#define MAXCOMMANDLENGTH MAXPATHLEN
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
int int_val;
|
int int_val;
|
||||||
@@ -207,12 +218,15 @@ YYSTYPE yylval;
|
|||||||
#define EXTRA_LIST 0x03
|
#define EXTRA_LIST 0x03
|
||||||
|
|
||||||
/* These are the functions that are called in sudo */
|
/* These are the functions that are called in sudo */
|
||||||
char *find_path();
|
#ifdef NEED_STRDUP
|
||||||
char *strdup();
|
char *strdup();
|
||||||
|
#endif
|
||||||
|
char *find_path();
|
||||||
void load_globals();
|
void load_globals();
|
||||||
void log_error();
|
void log_error();
|
||||||
void inform_user();
|
void inform_user();
|
||||||
void check_user();
|
void check_user();
|
||||||
|
void clean_envp();
|
||||||
int validate();
|
int validate();
|
||||||
|
|
||||||
/* Most of these variables are declared in main() so they don't need
|
/* Most of these variables are declared in main() so they don't need
|
||||||
@@ -227,8 +241,9 @@ extern uid_t uid;
|
|||||||
extern char *host;
|
extern char *host;
|
||||||
extern char *user;
|
extern char *user;
|
||||||
extern char *cmnd;
|
extern char *cmnd;
|
||||||
extern char **Argv;
|
|
||||||
extern int Argc;
|
extern int Argc;
|
||||||
|
extern char **Argv;
|
||||||
|
extern char **Envp;
|
||||||
#endif
|
#endif
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
|
||||||
@@ -236,4 +251,7 @@ extern int errno;
|
|||||||
#ifdef hpux
|
#ifdef hpux
|
||||||
#define setruid(__RUID) (setresuid((uid_t)(__RUID), (uid_t) -1, (uid_t) -1))
|
#define setruid(__RUID) (setresuid((uid_t)(__RUID), (uid_t) -1, (uid_t) -1))
|
||||||
#define getdtablesize() (sysconf(_SC_OPEN_MAX))
|
#define getdtablesize() (sysconf(_SC_OPEN_MAX))
|
||||||
|
#ifndef USE_CWD
|
||||||
|
#define USE_CWD
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user