Blame SOURCES/krb5-1.10-kprop-mktemp.patch
|
|
5af5b2 |
Use an in-memory ccache to silence a compiler warning, for RT#6414.
|
|
|
5af5b2 |
|
|
|
5af5b2 |
--- krb5/src/slave/kprop.c
|
|
|
5af5b2 |
+++ krb5/src/slave/kprop.c
|
|
|
5af5b2 |
@@ -202,9 +202,8 @@ void PRS(argc, argv)
|
|
|
5af5b2 |
void get_tickets(context)
|
|
|
5af5b2 |
krb5_context context;
|
|
|
5af5b2 |
{
|
|
|
5af5b2 |
- char buf[BUFSIZ], *def_realm;
|
|
|
5af5b2 |
+ char buf[] = "MEMORY:_kproptkt", *def_realm;
|
|
|
5af5b2 |
krb5_error_code retval;
|
|
|
5af5b2 |
- static char tkstring[] = "/tmp/kproptktXXXXXX";
|
|
|
5af5b2 |
krb5_keytab keytab = NULL;
|
|
|
5af5b2 |
|
|
|
5af5b2 |
/*
|
|
|
5af5b2 |
@@ -229,11 +228,8 @@ void get_tickets(context)
|
|
|
5af5b2 |
#endif
|
|
|
5af5b2 |
|
|
|
5af5b2 |
/*
|
|
|
5af5b2 |
- * Initialize cache file which we're going to be using
|
|
|
5af5b2 |
+ * Initialize an in-memory cache for temporary use
|
|
|
5af5b2 |
*/
|
|
|
5af5b2 |
- (void) mktemp(tkstring);
|
|
|
5af5b2 |
- snprintf(buf, sizeof(buf), "FILE:%s", tkstring);
|
|
|
5af5b2 |
-
|
|
|
5af5b2 |
retval = krb5_cc_resolve(context, buf, &ccache);
|
|
|
5af5b2 |
if (retval) {
|
|
|
5af5b2 |
com_err(progname, retval, _("while opening credential cache %s"), buf);
|