commit | 939a31c03eb71f41aa6e11459ff608a6dc46fb31 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue May 28 22:36:29 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue May 28 22:41:03 2013 -0700 |
tree | a29c52d598ff90a16cbd9bef8f1557b7cfa44eb3 | |
parent | 0e0890a4038a261a4d3095288494721b56d3b80a [diff] |
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>