stat_file(): use access()

Function stat() was used to check if file is available. It is
an overkill. Let's just use access(file, F_OK) instead.
Also, simplify the code while we're at it.

Now, function name (stat_file) becomes somewhat strange,
but let's leave it as it for now.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed