[prev in list] [next in list] [prev in thread] [next in thread] 

List:       krb5-cvs
Subject:    svn rev #25485: trunk/src/lib/krb5/ccache/
From:       ghudson () mit ! edu
Date:       2011-11-22 17:52:55
Message-ID: 201111221752.pAMHqtbD007173 () drugstore ! mit ! edu
[Download RAW message or body]

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);

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic