My error - add test for mode_t (AC_TYPE_MODE_T) and use that as argument
authorEzra Peisach <epeisach@mit.edu>
Thu, 5 Oct 2000 19:25:45 +0000 (19:25 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 5 Oct 2000 19:25:45 +0000 (19:25 +0000)
to umask.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12724 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/configure.in
src/lib/krb4/in_tkt.c

index c87bedb88993f3b7623b59b41196fe9e4dc732d5..94c6fa53c43b265df9c7b79a08dfe804cdb8c154 100644 (file)
@@ -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  <tlyu@mit.edu>
index 470c3e3b90106c4c76d662024f51c767ba144d16..4cf2649fab99311668b0e6979dadbd0d5bed6bdb 100644 (file)
@@ -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)
index 53f40f50e32f382e2dbb408c66a532953e2daecf..07e56d0b916e83fcd6c5521de5e26778aa1d94ff 100644 (file)
@@ -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 */