]>
Commit | Line | Data |
---|---|---|
6cf77d05 SS |
1 | Use an in-memory ccache to silence a compiler warning, for RT#6414. |
2 | ||
3 | --- krb5/src/slave/kprop.c | |
4 | +++ krb5/src/slave/kprop.c | |
5 | @@ -202,9 +202,8 @@ void PRS(argc, argv) | |
6 | void get_tickets(context) | |
7 | krb5_context context; | |
8 | { | |
9 | - char buf[BUFSIZ], *def_realm; | |
10 | + char buf[] = "MEMORY:_kproptkt", *def_realm; | |
11 | krb5_error_code retval; | |
12 | - static char tkstring[] = "/tmp/kproptktXXXXXX"; | |
13 | krb5_keytab keytab = NULL; | |
14 | ||
15 | /* | |
16 | @@ -229,11 +228,8 @@ void get_tickets(context) | |
17 | #endif | |
18 | ||
19 | /* | |
20 | - * Initialize cache file which we're going to be using | |
21 | + * Initialize an in-memory cache for temporary use | |
22 | */ | |
23 | - (void) mktemp(tkstring); | |
24 | - snprintf(buf, sizeof(buf), "FILE:%s", tkstring); | |
25 | - | |
26 | retval = krb5_cc_resolve(context, buf, &ccache); | |
27 | if (retval) { | |
28 | com_err(progname, retval, _("while opening credential cache %s"), buf); |