From: Loic Dachary Date: Sun, 15 Sep 2013 14:38:58 +0000 (+0200) Subject: mon: validate mon dump epoch as a positive integer X-Git-Tag: v0.71~89^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ccf2200841d84c9b61297ccc482cad95fec1ff8c;p=ceph.git mon: validate mon dump epoch as a positive integer All other epochs are validated in the same way http://tracker.ceph.com/issues/6274 refs #6274 Reviewed-by: Joao Eduardo Luis Signed-off-by: Loic Dachary --- diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 365fd28b64ee..482ea91ea022 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -290,7 +290,7 @@ COMMAND("mds newfs " \ * Monmap commands */ COMMAND("mon dump " \ - "name=epoch,type=CephInt,req=false", \ + "name=epoch,type=CephInt,range=0,req=false", \ "dump formatted monmap (optionally from epoch)", \ "mon", "r", "cli,rest") COMMAND("mon stat", "summarize monitor status", "mon", "r", "cli,rest")