From: Todd C. Miller Date: Tue, 8 Oct 1996 23:11:45 +0000 (+0000) Subject: added seteuid() macro for DYNIX X-Git-Tag: SUDO_1_5_2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=885cbad121ca74736b30ebcc6652b6500057ca17;p=sudo added seteuid() macro for DYNIX --- diff --git a/compat.h b/compat.h index 0973e1656..e72785128 100644 --- a/compat.h +++ b/compat.h @@ -122,20 +122,25 @@ #endif /* GID_NO_CHANGE */ /* - * Emulate seteuid() and setegid() for HP-UX + * Emulate seteuid() for HP-UX */ #ifdef __hpux # define seteuid(_EUID) (setresuid(UID_NO_CHANGE, _EUID, UID_NO_CHANGE)) -# define setegid(_EGID) (setresgid(GID_NO_CHANGE, _EGID, GID_NO_CHANGE)) -#endif /* __hpux */ +#endif /* __hpux */ /* - * Emulate seteuid() and setegid() for AIX + * Emulate seteuid() for AIX */ #ifdef _AIX # include # define seteuid(_EUID) (setuidx(ID_EFFECTIVE|ID_REAL, _EUID)) -# define setegid(_EGID) (setgidx(ID_EFFECTIVE|ID_REAL, _EGID)) -#endif /* _AIX */ +#endif /* _AIX */ + +/* + * Emulate seteuid() for DYNIX + */ +#ifdef sequent +# define seteuid(_EUID) (setresuid(UID_NO_CHANGE, _EUID)) +#endif /* sequent */ #endif /* _SUDO_COMPAT_H */