]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-journal-tool: fix crash with empty argv
authorXiubo Li <xiubli@redhat.com>
Tue, 31 Dec 2019 06:57:51 +0000 (01:57 -0500)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 16:44:42 +0000 (17:44 +0100)
commit68daca8b7adb32709a25d9bfd73586d8341fcce0
treec169b71962943fb21c582cd5949faa386b59946e
parent2ab5460062b6732d368caed445f975e4b7ef2331
cephfs-journal-tool: fix crash with empty argv

If the argument is empty, it will be better to give a hint
instead of crashing.

Fixes: https://tracker.ceph.com/issues/43438
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 2e38246ba24ddf48afa6c3a631e3aaa5e5743c93)
src/tools/cephfs/JournalTool.cc