diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-04-09 14:50:52 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-04-09 14:50:52 +0000 |
commit | cb17e99faeea6823a630b9769a1c8906ea0766b3 (patch) | |
tree | dca63d3267b9b24cfb7f2f18d65aec6fb8808044 /openbsd-compat/bsd-misc.h | |
parent | 393d2f782d4137873c7d5e96bb8a439767a9ac74 (diff) |
- (stevesk) use setresgid() for setegid() if needed
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 61443b81c..2ca0f3704 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* $Id: bsd-misc.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ | 25 | /* $Id: bsd-misc.h,v 1.3 2001/04/09 14:50:56 stevesk Exp $ */ |
26 | 26 | ||
27 | #ifndef _BSD_MISC_H | 27 | #ifndef _BSD_MISC_H |
28 | #define _BSD_MISC_H | 28 | #define _BSD_MISC_H |
@@ -52,6 +52,10 @@ int innetgr(const char *netgroup, const char *host, | |||
52 | int seteuid(uid_t euid); | 52 | int seteuid(uid_t euid); |
53 | #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ | 53 | #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ |
54 | 54 | ||
55 | #if !defined(HAVE_SETEGID) && defined(HAVE_SETRESGID) | ||
56 | int setegid(uid_t egid); | ||
57 | #endif /* !defined(HAVE_SETEGID) && defined(HAVE_SETRESGID) */ | ||
58 | |||
55 | #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) | 59 | #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) |
56 | const char *strerror(int e); | 60 | const char *strerror(int e); |
57 | #endif | 61 | #endif |