]> git.ipfire.org Git - thirdparty/krb5.git/commit
In ksu, don't stat() not-on-disk ccache residuals
authorNalin Dahyabhai <nalin@redhat.com>
Fri, 1 Nov 2013 13:48:13 +0000 (09:48 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Aug 2014 17:02:35 +0000 (13:02 -0400)
commit9ebae7cb434b9b177c0af85c67a6d6267f46bc68
treea2f98cb09df7b5eaaaa70cb7434c191903988fb4
parent74e775ac6d937c9d22be4fc1d429e5e62705fb7d
In ksu, don't stat() not-on-disk ccache residuals

Don't assume that ccache residual names are filenames which we can
stat() usefully.  Instead, use helper functions to call the library
routines to try to read the default principal name from caches, and
use whether or not that succeeds as an indication of whether or not
there's a ccache in a given location.

ticket: 7728
src/clients/ksu/ccache.c
src/clients/ksu/heuristic.c
src/clients/ksu/ksu.h
src/clients/ksu/main.c