Commit d1e6c402 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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

parent 9b53d84d
...@@ -19,7 +19,7 @@ else ...@@ -19,7 +19,7 @@ else
{ {
if (!$ENV{'GSSAPI_FULLNAME'}) if (!$ENV{'GSSAPI_FULLNAME'})
{ {
my $s = `klist |grep 'Default principal: '`; my $s = `klist 2>/dev/null |grep 'Default principal: '`;
if ($s) if ($s)
{ {
chomp($s); chomp($s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment