case uid_t to unsigned long in printf format
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15246 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -235,7 +235,8 @@ proto (int sock, const char *service)
|
||||
if (tk_file.length != 1)
|
||||
snprintf (ccname, sizeof(ccname), "%s", (char *)(tk_file.data));
|
||||
else
|
||||
snprintf (ccname, sizeof(ccname), "FILE:/tmp/krb5cc_%u",pwd->pw_uid);
|
||||
snprintf (ccname, sizeof(ccname), "FILE:/tmp/krb5cc_%lu",
|
||||
(unsigned long)pwd->pw_uid);
|
||||
|
||||
status = krb5_cc_resolve (context, ccname, &ccache);
|
||||
if (status) {
|
||||
|
@@ -819,7 +819,8 @@ doit (void)
|
||||
int fd;
|
||||
|
||||
if (!do_unique_tkfile)
|
||||
snprintf(tkfile,sizeof(tkfile),"FILE:/tmp/krb5cc_%u",pwd->pw_uid);
|
||||
snprintf(tkfile,sizeof(tkfile),"FILE:/tmp/krb5cc_%lu",
|
||||
(unsigned long)pwd->pw_uid);
|
||||
else if (*tkfile=='\0') {
|
||||
snprintf(tkfile,sizeof(tkfile),"FILE:/tmp/krb5cc_XXXXXX");
|
||||
fd = mkstemp(tkfile+5);
|
||||
|
@@ -533,7 +533,7 @@ kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
|
||||
break;
|
||||
|
||||
snprintf (ccname, sizeof(ccname),
|
||||
"FILE:/tmp/krb5cc_%u", pwd->pw_uid);
|
||||
"FILE:/tmp/krb5cc_%lu", (unsigned long)pwd->pw_uid);
|
||||
|
||||
ret = krb5_cc_resolve (context, ccname, &ccache);
|
||||
if (ret) {
|
||||
|
Reference in New Issue
Block a user