add missing checks on so far ignored return values
drwxr-xr-x - ctdb