]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
SyntheticClient.cc: check return value of getdir()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 26 Oct 2014 17:19:58 +0000 (18:19 +0100)
committerSage Weil <sage@redhat.com>
Mon, 27 Oct 2014 19:44:25 +0000 (12:44 -0700)
commit56de4caf3552fafbaaced0b2e4eaf26957bbc595
treebfde9aa610ad55677af7e998905fff4839f2e9be
parent6c4a08c1aa5038ec9b914a279fe0029926b2cf81
SyntheticClient.cc: check return value of getdir()

Check return value as done in all other places. Fix error messages
to print correct function name getdir and not read_dir/readdir since
the error isn't necessarily raised by read_dir().

Fix for:
CID 1219463 (#1 of 1): Unchecked return value (CHECKED_RETURN)
 check_return: Calling getdir without checking return value (as
 is done elsewhere 4 out of 5 times).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/client/SyntheticClient.cc