]> andersk Git - openssh.git/blobdiff - auth-krb4.c
- mpech@cvs.openbsd.org 2002/06/11 05:46:20
[openssh.git] / auth-krb4.c
index 2a3cf53146e6d99c7a382a964037376293b297e8..1cc528aa0a9dfb1ff5da92884aca8cae5c3986d6 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth-krb4.c,v 1.26 2002/03/18 01:30:10 dugsong Exp $");
+RCSID("$OpenBSD: auth-krb4.c,v 1.27 2002/06/11 05:46:20 mpech Exp $");
 
 #include "ssh.h"
 #include "ssh1.h"
@@ -57,8 +57,8 @@ krb4_init(void *context)
                if (lstat("/ticket", &st) != -1)
                        tkt_root = "/ticket/";
 #endif /* AFS */
-               snprintf(authctxt->krb4_ticket_file, MAXPATHLEN, "%s%u_%d",
-                   tkt_root, authctxt->pw->pw_uid, getpid());
+               snprintf(authctxt->krb4_ticket_file, MAXPATHLEN, "%s%u_%ld",
+                   tkt_root, authctxt->pw->pw_uid, (long)getpid());
                krb_set_tkt_string(authctxt->krb4_ticket_file);
        }
        /* Register ticket cleanup in case of fatal error. */
This page took 0.044822 seconds and 4 git commands to generate.