]> git.samba.org - jlayton/cifs-utils.git/commit
cifs.upcall: scan /run/user/${UID} for ccaches, too
authorNalin Dahyabhai <nalin@redhat.com>
Thu, 23 Aug 2012 15:14:56 +0000 (11:14 -0400)
committerJeff Layton <jlayton@samba.org>
Thu, 23 Aug 2012 11:46:37 +0000 (07:46 -0400)
commitca0894e40480a9115c6bad670149b075646ead2c
tree2f8f50a0fa292fbfd62750b3aa1d443bd6ce881b
parentd006986221b7f1aad50e894851dc573650b7611c
cifs.upcall: scan /run/user/${UID} for ccaches, too

When scanning for credential caches, check the user's directory under
/run/user first, then fall back to /tmp as we have previously.  Because
we now call find_krb5_cc() twice (once for each directory), we move its
state to be outside of the function.  We also add a substitution
mechanism to make the process of resolving the location of the user's
home directory before searching it a bit more explicable.
cifs.upcall.c