Better install check

This commit is contained in:
Jamie Cameron
2008-03-02 19:42:25 +00:00
parent 47ddbacc22
commit ecbebebeb6

View File

@@ -8,5 +8,5 @@ do 'krb5-lib.pl';
# For mode 0, returns 1 if installed, 0 if not
sub is_installed
{
return $_[0] ? 2 : 1;
return !-r $config{'krb5_conf'} ? 0 : $_[0] ? 2 : 1;
}