gssd: remove redundant array size.

When initialising an array there is no need to specify the size as the
size is taken from the initialiser.  Having the size there means that
any change to the initialiser needs to change the size to and so is
error-prone.

So just remove the size.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Fix handling of preferred realm command line option.

The current implementation ignores any preferred realm specified on the
command line. Fix this behaviour and make sure the preferred realm is
used as first realm when trying to acquire a keytab entry

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Signed-off-by: Frederik Moellers <frederik.moellers@upb.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
nfsiostat: restore output format

Recent changes to support python 3 changed the output of nfsiostat from:

read:             ops/s            kB/s           kB/op         retrans
avg RTT (ms)    avg exe (ms)
                 48.094         2889.133         60.072        0 (0.0%)
177.160         184.833
...

to:

read:
  ops/s		   kB/s		  kB/op		retrans		avg RTT (ms)	avg exe
(ms)
		  0.000
	  0.000
	  0.000
       0 (0.0%)
	  0.000
	  0.000
...

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
gssd: don't give up on machine credential if hostname not available.

krb5_util tries various different credential names in order to find
the machine credential, not all of them use the full host name of the
current host.

So if getting the full host name fails, don't give up completely,
still try the other options.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
gssd: fixed typo in machine cred name.

Commit 1c787f14 [gssd: scan for DIR: ccaches, too] changed the default
prefix for the credential cache files. Update the check to ignore the
machine credential file when running with -n (root ignores machine
credentials).

Signed-off-by: Steve Dickson <steved@redhat.com>