mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:smbspool: Use %u format specifier to print uid
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13939 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
3632bfef25
commit
be596ce3d2
@ -227,13 +227,13 @@ int main(int argc, char *argv[])
|
||||
|
||||
CUPS_SMB_DEBUG("Trying to guess KRB5CCNAME (FILE, DIR, KEYRING)");
|
||||
|
||||
snprintf(gen_cc, sizeof(gen_cc), "/tmp/krb5cc_%d", uid);
|
||||
snprintf(gen_cc, sizeof(gen_cc), "/tmp/krb5cc_%u", uid);
|
||||
|
||||
rc = lstat(gen_cc, &sb);
|
||||
if (rc == 0) {
|
||||
snprintf(gen_cc, sizeof(gen_cc), "FILE:/tmp/krb5cc_%d", uid);
|
||||
snprintf(gen_cc, sizeof(gen_cc), "FILE:/tmp/krb5cc_%u", uid);
|
||||
} else {
|
||||
snprintf(gen_cc, sizeof(gen_cc), "/run/user/%d/krb5cc", uid);
|
||||
snprintf(gen_cc, sizeof(gen_cc), "/run/user/%u/krb5cc", uid);
|
||||
|
||||
rc = lstat(gen_cc, &sb);
|
||||
if (rc == 0 && S_ISDIR(sb.st_mode)) {
|
||||
|
Loading…
Reference in New Issue
Block a user