2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-02 23:35:36 +00:00

added HAS_SAVED_UID

This commit is contained in:
Todd C. Miller
1994-02-05 20:16:57 +00:00
parent 4d7ae0eb28
commit 894a7bd0f8

8
sudo.h
View File

@@ -92,6 +92,9 @@
USE_CWD if you have getcwd() and not getwd()
(defined by default for hpux)
HAS_SAVED_UID if you have saved uid
(defined by default for hpux)
USE_TERMIO if you have sysV terminal control
(defined by default for hpux and irix)
@@ -299,10 +302,13 @@ extern int errno;
*/
#ifdef hpux
# define getdtablesize() (sysconf(_SC_OPEN_MAX))
#define seteuid(__EUID) (setresuid((uid_t)-1, __EUID, (uid_t)-1))
# define setreuid(__RUID, __EUID) (setresuid(__RUID, __EUID, (uid_t)-1))
# ifndef USE_CWD
# define USE_CWD
# endif /* USE_CWD */
# ifndef HAS_SAVED_UID
# define HAS_SAVED_UID
# endif /* HAS_SAVED_UID */
#endif /* hpux */
/*