From b232034c308dfe623a7e896abcee66329d3e1967 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 29 Mar 1995 16:55:01 +0000 Subject: [PATCH] * ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now. FIXME, this needs to find the Preferences folder and use that. FIXME, shouldn't be conditioned on HAVE_MACSOCK_H. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5308 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ccdefname.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index 5ec4256cd..a08a66e58 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -39,6 +39,9 @@ krb5_cc_default_name(context) if (name_buf == 0) name_buf = malloc (160); +#ifdef HAVE_MACSOCK_H + strcpy (name_buf, "STDIO:krb5cc"); +#else #ifdef _WINDOWS { char defname[160]; /* Default value */ @@ -51,6 +54,7 @@ krb5_cc_default_name(context) } #else sprintf(name_buf, "FILE:/tmp/krb5cc_%d", getuid()); +#endif #endif name = name_buf; } -- 2.26.2