]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-monstore-tool.cc: check if open() was successful
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 17:11:26 +0000 (19:11 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 22:02:56 +0000 (00:02 +0200)
commitc006151c05b0599c3459ce051451ea0ad1b8dbdf
tree8235da11366f3aa7bda6dd17fe442c51b3a5a4d9
parentd1e0fc64e5024b2aa8e088abb3dc196ab97a5c80
ceph-monstore-tool.cc: check if open() was successful

Should fix: "fd" is passed to a parameter that cannot be negative.

CID 1019566 Improper use of negative value (NEGATIVE_RETURNS, CWE-394)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/ceph-monstore-tool.cc