Fixup strip trailing whitespaces for getuid return value
authorHannes Reinecke <hare@suse.de>
Fri, 25 Sep 2009 09:51:25 +0000 (11:51 +0200)
committerHannes Reinecke <hare@suse.de>
Sun, 15 May 2011 10:45:12 +0000 (12:45 +0200)
commit35f543f7f2ef1e6f5e7a73144103bf29f8de4594
tree6d46843747a51a9a030bae280c371611af238a09
parent7572f6d457b3f32cf6da22b15a83419e33a1445b
Fixup strip trailing whitespaces for getuid return value

The getuid callout might return a wwid with trailing
spaces (or containing only spaces). The existing
fixup code will only work if the getuid callout
returns a wwid with the entire space used up.
So fixup this and also update the logging output
to correctly state '<empty>' if the getuid was
found to be empty.

References: bnc#542085

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/discovery.c