that specifies that the "invalid flag" doesn't get checked. (This
version is only called from kdc_util.c:kdc_process_tgs_req.)
+Wed May 1 14:30:29 1996 Richard Basch <basch@lehman.com>
+
+ * srv_rcache.c (krb5_get_server_rcache): include the uid in the
+ default server replay cachename, for systems with geteuid.
+
+ * configure.in: test if the system has geteuid()
+
Wed May 1 02:26:53 1996 Mark Eichin <eichin@cygnus.com>
* str_conv.c (krb5_string_to_timestamp): double check that
AC_PROG_RANLIB
AC_HEADER_STDARG
V5_SHARED_LIB_OBJS
-AC_HAVE_FUNCS(strftime strptime)
+AC_HAVE_FUNCS(strftime strptime geteuid)
KRB5_RUN_FLAGS
SubdirLibraryRule([$(OBJS)])
USE_ANAME
char tmp[4];
krb5_error_code retval;
int len, p, i;
+
+#ifdef HAVE_GETEUID
+ unsigned long tens;
+ unsigned long uid = geteuid();
+#endif
rcache = (krb5_rcache) malloc(sizeof(*rcache));
if (!rcache)
else if (!isgraph(piece->data[i]))
len += 3;
}
+
+#ifdef HAVE_GETEUID
+ len += 2; /* _<uid> */
+ for (tens = 1; (uid / tens) > 9 ; tens *= 10)
+ len++;
+#endif
+
cachename = malloc(len);
if (!cachename) {
retval = ENOMEM;
}
cachename[p++] = piece->data[i];
}
+
+#ifdef HAVE_GETEUID
+ cachename[p++] = '_';
+ while (tens) {
+ cachename[p++] = '0' + ((uid / tens) % 10);
+ tens /= 10;
+ }
+#endif
+
cachename[p++] = '\0';
if ((retval = krb5_rc_resolve(context, rcache, cachename)))