svn rev #25485: trunk/src/lib/krb5/ccache/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Nov 22 12:52:55 EST 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25485
Commit By: ghudson
Log Message:
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.


Changed Files:
U   trunk/src/lib/krb5/ccache/cc_file.c
Modified: trunk/src/lib/krb5/ccache/cc_file.c
===================================================================
--- trunk/src/lib/krb5/ccache/cc_file.c	2011-11-22 17:48:29 UTC (rev 25484)
+++ trunk/src/lib/krb5/ccache/cc_file.c	2011-11-22 17:52:55 UTC (rev 25485)
@@ -1449,9 +1449,9 @@
 #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);




More information about the cvs-krb5 mailing list