From: Greg Hudson Date: Tue, 22 Nov 2011 17:52:55 +0000 (+0000) Subject: Use POSIX constants instead of S_IREAD/S_IWRITE X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01bd1cedd0fb24b7578b3c4b563f065dd113e3d7;p=krb5.git Use POSIX constants instead of S_IREAD/S_IWRITE S_IREAD and S_IWRITE are ancient names for S_IRUSR and S_IWUSR, and are not defined on some modern platforms (such as Android). Use the POSIX names instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25485 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 39f81d8b4..36133797c 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -1449,9 +1449,9 @@ krb5_fcc_initialize(krb5_context context, krb5_ccache id, krb5_principal princ) #if defined(HAVE_FCHMOD) || defined(HAVE_CHMOD) { #ifdef HAVE_FCHMOD - reti = fchmod(((krb5_fcc_data *) id->data)->file, S_IREAD | S_IWRITE); + reti = fchmod(((krb5_fcc_data *)id->data)->file, S_IRUSR | S_IWUSR); #else - reti = chmod(((krb5_fcc_data *) id->data)->filename, S_IREAD | S_IWRITE); + reti = chmod(((krb5_fcc_data *)id->data)->filename, S_IRUSR | S_IWUSR); #endif if (reti == -1) { kret = krb5_fcc_interpret(context, errno);