mtr complains about klist is not found, if Kerberos is not installed on machines

This commit is contained in:
Vladislav Vaintroub 2016-03-17 17:58:40 +01:00
commit d1e6c40294

View file

@ -19,7 +19,7 @@ else
{
if (!$ENV{'GSSAPI_FULLNAME'})
{
my $s = `klist |grep 'Default principal: '`;
my $s = `klist 2>/dev/null |grep 'Default principal: '`;
if ($s)
{
chomp($s);