[OpenAFS-devel] Improve error message when bos cannot find the /usr/afs/etc/KeyFile

Martin MOKREJŠ mmokrejs@ribosome.natur.cuni.cz
Fri, 02 Sep 2005 02:27:34 +0200


Please improve the messages so that user knows what actually has failed.

# rm /usr/afs/etc/KeyFile 
# /usr/afs/bin/bos listkeys -server phylo -localauth
bos: could not find entry (getting key from local KeyFile)
bos: running unauthenticated
All done.
# cp /usr/vice/etc/KeyFile /usr/afs/etc/KeyFile 
# /usr/afs/bin/bos listkeys -server phylo -localauth
bos: ticket contained unknown key version number error encountered while listing keys
# 

This was tested with current cvs checkout, HEAD or whatever is the default.
It is interresting to see that strace shows that bos has opened /usr/vice/etc/KeyFile
but much later tries also to open /usr/afs/etc/KeyFile and when that fails, it
spits the "bos: could not find entry (getting key from local KeyFile)" message.
I doubt why it has ever tried to open the /usr/vice/etc/KeyFile file then
when it did not make use of it?
Martin