From 587c9e92286e24ec0bb8642f8c3955e622be18f9 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 11 Jun 2001 14:49:37 +0000 Subject: [PATCH] * krshd.c: Include , , and for initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait() prototypes. For local initgroups definition, conditionalize on HAVE_INITGROUPS and not __SCO__. * krcp.c: Include for wait()/waitpid() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13321 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 9 +++++++++ src/appl/bsd/krcp.c | 1 + src/appl/bsd/krshd.c | 7 ++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 4ecd9503f..6e158b9ff 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,12 @@ +2001-06-11 Ezra Peisach + + * krshd.c: Include , , and for + initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait() + prototypes. For local initgroups definition, conditionalize on + HAVE_INITGROUPS and not __SCO__. + + * krcp.c: Include for wait()/waitpid() prototype. + 2001-06-04 Ezra Peisach * krlogin.c: Always provide prototype for setsignal and not if diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 89e62ba10..63d6bf0ef 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -65,6 +65,7 @@ char copyright[] = #else #include #endif +#include #ifdef KERBEROS #include diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 59e517159..cd5cd3b7b 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -105,10 +105,13 @@ char copyright[] = #include #include +#include #include #include #include #include +#include +#include #ifdef HAVE_SYS_LABEL_H /* only SunOS 4? */ @@ -254,8 +257,7 @@ void error(); void usage(void), getstr(int, char *, int, char *), doit(int, struct sockaddr_in *); -#ifdef __SCO__ -/* sco has getgroups and setgroups but no initgroups */ +#ifndef HAVE_INITGROUPS int initgroups(char* name, gid_t basegid) { gid_t others[NGROUPS_MAX+1]; int ngrps; @@ -606,7 +608,6 @@ void doit(f, fromp) #endif int valid_checksum; int cnt; - register char *p; char *crypt(); struct passwd *pwd; char *path; -- 2.26.2