[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect when KRB5CCNAME changes for certain server scenarios

8 feb 2007 kl. 16.14 skrev Michael B Allen:

> Please consider the below patch. This will cause  
> krb5_cc_set_default_name
> to be called if KRB5CCNAME changes at all. It assumes getenv returns
> the same address but if it does not the code is at least correct.

Shouldn't all inputs that changes the default name affect the "probe  
Right now that is KRB5CCNAME and uid of the process.

Also, if you use a static variable, you need to use a pthread mutex.
In this case I don't think it would matter much, but better be safe.