f9e6d882fd
* Add IPv6 support to changepw.c * fix two problems in kadm5_get_principal mask handling * Ignore improperly encoded signedpath AD elements * handle NT_SRV_INST in service principal referrals * dereference options while checking KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT * Fix the kpasswd fallback from the ccache principal name * Document the ticket_lifetime libdefaults setting * Change KRB5_AUTHDATA_SIGNTICKET from 142 to 512 OBS-URL: https://build.opensuse.org/package/show/network/krb5?expand=0&rev=13
29 lines
871 B
Plaintext
29 lines
871 B
Plaintext
Index: src/slave/kprop.c
|
|
===================================================================
|
|
--- src/slave/kprop.c.orig
|
|
+++ src/slave/kprop.c
|
|
@@ -206,6 +206,7 @@ void get_tickets(context)
|
|
krb5_error_code retval;
|
|
static char tkstring[] = "/tmp/kproptktXXXXXX";
|
|
krb5_keytab keytab = NULL;
|
|
+ int ret = 0;
|
|
|
|
/*
|
|
* Figure out what tickets we'll be using to send stuff
|
|
@@ -231,7 +232,15 @@ void get_tickets(context)
|
|
/*
|
|
* Initialize cache file which we're going to be using
|
|
*/
|
|
+#ifdef HAVE_MKSTEMP
|
|
+ ret = mkstemp(tkstring);
|
|
+ if (ret == -1) {
|
|
+ com_err(progname, errno, "while initialize cache file");
|
|
+ exit(1);
|
|
+ } else close(ret);
|
|
+#else
|
|
(void) mktemp(tkstring);
|
|
+#endif
|
|
snprintf(buf, sizeof(buf), "FILE:%s", tkstring);
|
|
|
|
retval = krb5_cc_resolve(context, buf, &ccache);
|