stat_file(): fix usage

stat_file() does not return a boolean, instead it can be 0, 1 or -1.
So we need to explicitly check for 1 in most of the cases.

Fix all cases in which we treated stat_file() return as boolean.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
15 files changed