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:
18
sudo.h
18
sudo.h
@@ -91,6 +91,9 @@
|
|||||||
|
|
||||||
USE_CWD if you have getcwd() and not getwd()
|
USE_CWD if you have getcwd() and not getwd()
|
||||||
(defined by default for hpux)
|
(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
|
USE_TERMIO if you have sysV terminal control
|
||||||
(defined by default for hpux and irix)
|
(defined by default for hpux and irix)
|
||||||
@@ -298,16 +301,19 @@ extern int errno;
|
|||||||
* This is to placate hpux
|
* This is to placate hpux
|
||||||
*/
|
*/
|
||||||
#ifdef hpux
|
#ifdef hpux
|
||||||
#define getdtablesize() (sysconf(_SC_OPEN_MAX))
|
# 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
|
# ifndef USE_CWD
|
||||||
#define USE_CWD
|
# define USE_CWD
|
||||||
#endif /* USE_CWD */
|
# endif /* USE_CWD */
|
||||||
|
# ifndef HAS_SAVED_UID
|
||||||
|
# define HAS_SAVED_UID
|
||||||
|
# endif /* HAS_SAVED_UID */
|
||||||
#endif /* hpux */
|
#endif /* hpux */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sun's cpp doesn't define this but it should
|
* Sun's cpp doesn't define this but it should
|
||||||
*/
|
*/
|
||||||
#if defined(SOLARIS) && !defined(__svr4__)
|
#if defined(SOLARIS) && !defined(__svr4__)
|
||||||
#define __svr4__
|
# define __svr4__
|
||||||
#endif /* SOLARIS */
|
#endif /* SOLARIS */
|
||||||
|
Reference in New Issue
Block a user