projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
180c638
)
Added include for errno.h; added support for fchmod()
author
Theodore Tso
<tytso@mit.edu>
Tue, 23 Feb 1993 00:45:00 +0000
(
00:45
+0000)
committer
Theodore Tso
<tytso@mit.edu>
Tue, 23 Feb 1993 00:45:00 +0000
(
00:45
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2494
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/ccache/file/fcc_init.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/ccache/file/fcc_init.c
b/src/lib/krb5/ccache/file/fcc_init.c
index 625519599989dafc0f282570b10b44155ab5e06b..ea63662cdd3649ee6ec84723073bcacefa0dc0f4 100644
(file)
--- a/
src/lib/krb5/ccache/file/fcc_init.c
+++ b/
src/lib/krb5/ccache/file/fcc_init.c
@@
-30,7
+30,7
@@
static char rcsid_fcc_init_c[] =
"$Id$";
#endif /* !lint && !SABER */
-
+#include <errno.h>
#include "fcc.h"
/*
@@
-54,7
+54,11
@@
krb5_fcc_initialize(id, princ)
MAYBE_OPEN(id, FCC_OPEN_AND_ERASE);
+#ifdef NOFCHMOD
+ ret = chmod(((krb5_fcc_data *) id->data)->filename, S_IREAD | S_IWRITE);
+#else
ret = fchmod(((krb5_fcc_data *) id->data)->fd, S_IREAD | S_IWRITE);
+#endif
if (ret == -1) {
ret = krb5_fcc_interpret(errno);
MAYBE_CLOSE(id, ret);