Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
krb5
kprop-use-mkstemp.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kprop-use-mkstemp.dif of Package krb5
--- src/slave/kprop.c +++ src/slave/kprop.c 2006/06/21 12:38:34 @@ -215,6 +215,7 @@ 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 @@ -240,7 +241,15 @@ /* * 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 sprintf(buf, "FILE:%s", tkstring); retval = krb5_cc_resolve(context, buf, &ccache);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor