diff options
author | Nalin Dahyabhai <nalin@fedoraproject.org> | 2004-11-26 17:29:18 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@fedoraproject.org> | 2004-11-26 17:29:18 +0000 |
commit | f2b2727a44efe5c6402eb78581806f6a4359cdbb (patch) | |
tree | fa00e64d5c1afbaa0ca49433fa0d4451803699d2 | |
parent | 36dc58b327fa09c01a3075a66d7b42f765a3909f (diff) | |
download | krb5-f2b2727a44efe5c6402eb78581806f6a4359cdbb.tar.gz krb5-f2b2727a44efe5c6402eb78581806f6a4359cdbb.tar.xz krb5-f2b2727a44efe5c6402eb78581806f6a4359cdbb.zip |
- oops, forgot this one (Martin Stransky)
-rw-r--r-- | krb5-1.3.5-kprop-mktemp.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/krb5-1.3.5-kprop-mktemp.patch b/krb5-1.3.5-kprop-mktemp.patch new file mode 100644 index 0000000..612ce12 --- /dev/null +++ b/krb5-1.3.5-kprop-mktemp.patch @@ -0,0 +1,41 @@ +Use an in-memory +--- krb5-1.3.5/src/slave/kprop.c 2004-11-17 12:18:48.000000000 -0500 ++++ krb5-1.3.5/src/slave/kprop.c 2004-11-17 13:42:31.926487217 -0500 +@@ -211,9 +211,8 @@ + void get_tickets(context) + krb5_context context; + { +- char buf[BUFSIZ]; + krb5_error_code retval; +- static char tkstring[] = "/tmp/kproptktXXXXXX"; ++ char tkstring[] = "MEMORY:_kproptkt"; + krb5_keytab keytab = NULL; + + /* +@@ -238,22 +237,19 @@ + #endif + + /* +- * Initialize cache file which we're going to be using ++ * Initialize an in-memory cache for temporary use + */ +- (void) mktemp(tkstring); +- sprintf(buf, "FILE:%s", tkstring); +- +- retval = krb5_cc_resolve(context, buf, &ccache); ++ retval = krb5_cc_resolve(context, tkstring, &ccache); + if (retval) { + com_err(progname, retval, "while opening credential cache %s", +- buf); ++ tkstring); + exit(1); + } + + retval = krb5_cc_initialize(context, ccache, my_principal); + if (retval) { + com_err (progname, retval, "when initializing cache %s", +- buf); ++ tkstring); + exit(1); + } + |