From 4662455df55bc3f4bba450153bfbb8e2f51fb781 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 12 Jul 1999 20:19:51 +0000 Subject: [PATCH] AIX 4.3.2 (4.3.0+) build fixes based on bug report from Joshua Lackey, lackeyj@austin.ibm.com. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11563 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 8 ++++++++ src/appl/bsd/configure.in | 2 +- src/appl/bsd/login.c | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 1538c27cd..506089b0b 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,11 @@ +1999-07-09 Ken Raeburn + + AIX 4.3.2 changes based on bug report from Joshua Lackey, + lackeyj@austin.ibm.com: + * configure.in: Check for rmufile function. + * login.c (update_ref_count) [! HAVE_RMUFILE]: Call putgroupattr + with SEC_DELETE before SEC_COMMIT; don't call rmufile. + Fri Mar 12 19:01:35 1999 Tom Yu * Makefile.in (kshd): Add $(LOGINLIBS). diff --git a/src/appl/bsd/configure.in b/src/appl/bsd/configure.in index f96f9909f..6d31f489c 100644 --- a/src/appl/bsd/configure.in +++ b/src/appl/bsd/configure.in @@ -63,7 +63,7 @@ AC_SUBST(V4RCPO) dnl AC_VFORK AC_TYPE_MODE_T -AC_CHECK_FUNCS(isatty inet_aton gettosbyname killpg initgroups setpriority setreuid setresuid waitpid setsid ptsname setlogin tcgetpgrp tcsetpgrp setpgid strsave utimes) +AC_CHECK_FUNCS(isatty inet_aton gettosbyname killpg initgroups setpriority setreuid setresuid waitpid setsid ptsname setlogin tcgetpgrp tcsetpgrp setpgid strsave utimes rmufile) AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h utmp.h sys/time.h krb4-proto.h sys/ioctl_compat.h paths.h arpa/nameser.h) AC_HEADER_STDARG AC_REPLACE_FUNCS(getdtablesize) diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 97a230d01..c9912763c 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -2428,8 +2428,13 @@ update_ref_count(int adj) putgroupattr(grp, (char *)0, (void *)0, SEC_COMMIT); } else { putgroupattr(grp, S_USERS, (void *)empty, SEC_LIST); +#ifdef HAVE_RMUFILE /* pre-4.3.0 AIX */ putgroupattr(grp, (char *)0, (void *)0, SEC_COMMIT); rmufile(grp, 0, GROUP_TABLE); +#else + putgroupattr(grp, (char *)0, (void *)0, SEC_DELETE); + putgroupattr(grp, (char *)0, (void *)0, SEC_COMMIT); +#endif } } while (*grp) grp++; -- 2.26.2