Sumit Bose <sbose(a)redhat.com> wrote:
On Sat, Nov 20, 2010 at 12:25:02AM +0100, Jan Zeleny wrote:
> After some complications I finally made the patch solving ticket #533
> (different ccache files during multiple simultaneous logins of the same
> user). It is based on Simo's idea to determine the ccache file name in
> advance and count references to it.
>
> Jan
I'm not sure if it is worth writing the reference counter and the new
file to the cache. Having them in a hash should be sufficient and
the reference counter does not have to be reseted at startup (which is
missing).
The reference counter is set in krb5_auth_send() but decremented in
krb5_child_done(). This should be moved to krb5_auth_done() before any
error checking to make sure that it is done under all circumstances.
bye,
Sumit
I'm sending updated patch. Both your objections were valid and they are now
resolved.
Jan