diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-11-22 17:52:55 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-11-22 17:52:55 +0000 |
commit | 01bd1cedd0fb24b7578b3c4b563f065dd113e3d7 (patch) | |
tree | fb05986087093a74e6adb12ec7f8c57c0c32b1fa /src/lib/krb5/ccache | |
parent | ccefb9a6fdd6cdba33fa63ee7284b3b0e0e618cb (diff) | |
download | krb5-01bd1cedd0fb24b7578b3c4b563f065dd113e3d7.tar.gz krb5-01bd1cedd0fb24b7578b3c4b563f065dd113e3d7.tar.xz krb5-01bd1cedd0fb24b7578b3c4b563f065dd113e3d7.zip |
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
Diffstat (limited to 'src/lib/krb5/ccache')
-rw-r--r-- | src/lib/krb5/ccache/cc_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 39f81d8b4e..36133797c9 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); |