From 60fe6cff157258de0ac2ff10017e28edefa46d6a Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 5 Oct 2000 19:25:45 +0000 Subject: [PATCH] My error - add test for mode_t (AC_TYPE_MODE_T) and use that as argument to umask. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12724 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 5 +++-- src/lib/krb4/configure.in | 1 + src/lib/krb4/in_tkt.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index c87bedb88..94c6fa53c 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -3,9 +3,10 @@ * netread.c, netwrite.c: Include unistd.h if present on machine for read/write prototypes. - * in_tkt.c: Argument to umask should be of type uid_t. + * in_tkt.c: Argument to umask should be of type mode_t. - * configure.in: Test for uid_t (AC_TYPE_UID_T). + * configure.in: Test for uid_t (AC_TYPE_UID_T) and mode_t + (AC_TYPE_MODE_T). 2000-08-31 Tom Yu diff --git a/src/lib/krb4/configure.in b/src/lib/krb4/configure.in index 470c3e3b9..4cf2649fa 100644 --- a/src/lib/krb4/configure.in +++ b/src/lib/krb4/configure.in @@ -37,6 +37,7 @@ if test $ac_cv_sizeof_int = 2; then else AC_DEFINE(BITS32) fi +AC_TYPE_MODE_T AC_TYPE_UID_T AC_DEFINE(KRB4_USE_KEYTAB) AC_HAVE_FUNCS(strdup seteuid setreuid setresuid) diff --git a/src/lib/krb4/in_tkt.c b/src/lib/krb4/in_tkt.c index 53f40f50e..07e56d0b9 100644 --- a/src/lib/krb4/in_tkt.c +++ b/src/lib/krb4/in_tkt.c @@ -61,7 +61,7 @@ in_tkt(pname,pinst) int fd; register int i; char charbuf[BUFSIZ]; - uid_t mask; + mode_t mask; #ifdef TKT_SHMEM char shmidname[MAXPATHLEN]; #endif /* TKT_SHMEM */ -- 2.26.2