diff options
| author | John Kohl <jtkohl@mit.edu> | 1991-02-12 14:03:34 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1991-02-12 14:03:34 +0000 |
| commit | 1142c9fa02e4f094a28bda2993591c554c1013fa (patch) | |
| tree | 78efe052df91fbf5f91980385a8dc1362aa19950 | |
| parent | 57117929a692e59ca4d534fe8014d25362061757 (diff) | |
now use int flag to scc_open_file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1668 dc483132-0cff-0310-8789-dd5450dbe970
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc-proto.h | 2 | ||||
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc_init.c | 2 | ||||
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc_nseq.c | 2 | ||||
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc_sflags.c | 2 | ||||
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc_store.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/krb5/ccache/stdio/scc-proto.h b/src/lib/krb5/ccache/stdio/scc-proto.h index e700182ca..fc3c71f80 100644 --- a/src/lib/krb5/ccache/stdio/scc-proto.h +++ b/src/lib/krb5/ccache/stdio/scc-proto.h @@ -42,7 +42,7 @@ krb5_error_code krb5_scc_initialize PROTOTYPE((krb5_ccache id , krb5_principal p /* scc_maybe.c */ krb5_error_code krb5_scc_close_file PROTOTYPE((krb5_ccache)); -krb5_error_code krb5_scc_open_file PROTOTYPE((krb5_ccache,const char*)); +krb5_error_code krb5_scc_open_file PROTOTYPE((krb5_ccache,int)); /* scc_nseq.c */ krb5_error_code krb5_scc_next_cred PROTOTYPE((krb5_ccache id , krb5_cc_cursor *cursor , krb5_creds *creds )); diff --git a/src/lib/krb5/ccache/stdio/scc_init.c b/src/lib/krb5/ccache/stdio/scc_init.c index ba3787744..f7ec08022 100644 --- a/src/lib/krb5/ccache/stdio/scc_init.c +++ b/src/lib/krb5/ccache/stdio/scc_init.c @@ -37,7 +37,7 @@ krb5_scc_initialize(id, princ) { int ret; - ret = krb5_scc_open_file (id, "w+"); + ret = krb5_scc_open_file (id, SCC_OPEN_AND_ERASE); if (ret < 0) return krb5_scc_interpret(errno); diff --git a/src/lib/krb5/ccache/stdio/scc_nseq.c b/src/lib/krb5/ccache/stdio/scc_nseq.c index 2bdda2fab..a4f503319 100644 --- a/src/lib/krb5/ccache/stdio/scc_nseq.c +++ b/src/lib/krb5/ccache/stdio/scc_nseq.c @@ -61,7 +61,7 @@ krb5_scc_next_cred(id, cursor, creds) Z (addresses); #undef Z - MAYBE_OPEN (id, "r"); + MAYBE_OPEN (id, SCC_OPEN_RDONLY); fcursor = (krb5_scc_cursor *) *cursor; ret = fseek(((krb5_scc_data *) id->data)->file, fcursor->pos, 0); diff --git a/src/lib/krb5/ccache/stdio/scc_sflags.c b/src/lib/krb5/ccache/stdio/scc_sflags.c index 2d0db8a0f..3b16691ea 100644 --- a/src/lib/krb5/ccache/stdio/scc_sflags.c +++ b/src/lib/krb5/ccache/stdio/scc_sflags.c @@ -45,7 +45,7 @@ krb5_scc_set_flags(id, flags) /* asking to turn off OPENCLOSE mode, meaning it must be left open. We open if it's not yet open */ if (OPENCLOSE(id)) { - ret = krb5_scc_open_file (id, "r+"); + ret = krb5_scc_open_file (id, SCC_OPEN_RDWR); } } diff --git a/src/lib/krb5/ccache/stdio/scc_store.c b/src/lib/krb5/ccache/stdio/scc_store.c index 8d0f29e7a..a5d7248fb 100644 --- a/src/lib/krb5/ccache/stdio/scc_store.c +++ b/src/lib/krb5/ccache/stdio/scc_store.c @@ -38,7 +38,7 @@ krb5_scc_store(id, creds) krb5_error_code ret; /* Make sure we are writing to the end of the file */ - MAYBE_OPEN (id, "r+"); + MAYBE_OPEN (id, SCC_OPEN_RDWR); ret = fseek(((krb5_scc_data *) id->data)->file, 0, 2); if (ret < 0) |
