From 180c638a229800fe08082c33a3ed2da99729abe1 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 23 Feb 1993 00:42:40 +0000 Subject: [PATCH] Added include for errno.h; added support for systems w/o fchmod() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2493 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_gennew.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/ccache/file/fcc_gennew.c b/src/lib/krb5/ccache/file/fcc_gennew.c index 7b82a4ffe..35da209e2 100644 --- a/src/lib/krb5/ccache/file/fcc_gennew.c +++ b/src/lib/krb5/ccache/file/fcc_gennew.c @@ -30,9 +30,9 @@ static char rcsid_fcc_resolve_c[] = "$Id$"; #endif /* !lint && !SABER */ -#include "fcc.h" - +#include #include +#include "fcc.h" #ifdef KRB5_USE_INET #include @@ -112,7 +112,11 @@ krb5_fcc_generate_new (id) int errsave, cnt; /* Ignore user's umask, set mode = 0600 */ +#ifdef NOFCHMOD + chmod(((krb5_fcc_data *) lid->data)->filename, S_IREAD | S_IWRITE); +#else fchmod(ret, S_IREAD | S_IWRITE); +#endif if ((cnt = write(ret, (char *)&fcc_fvno, sizeof(fcc_fvno))) != sizeof(fcc_fvno)) { errsave = errno; -- 2.26.2