]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: AuthMonitor: don't try to auth import a null buffer
authorSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 20:12:51 +0000 (13:12 -0700)
committerSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 22:50:49 +0000 (15:50 -0700)
commitc0845a979919e270d0782dd48ab7f4f71e4b53d7
tree5e8d1c91c3d86739bb1ec435be8a9bdf7cc03318
parent60a19e7412cb18f762e4c52aff59aed0091dbbf7
mon: AuthMonitor: don't try to auth import a null buffer

Hangs result if 'ceph auth import' is attempted without -i.
Check for this case and return error status.  Also,
update auth import help to more-clearly indicate that "input"
means "-i <file>".

Fixes: #4599
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/mon/AuthMonitor.cc
src/mon/MonCommands.h