utils: os_unix: Use access() for checking file existence
authorRahul Bedarkar <rahulbedarkar89@gmail.com>
Wed, 27 Jul 2016 16:47:53 +0000 (22:17 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 7 Aug 2016 21:24:07 +0000 (00:24 +0300)
commita2072a29b9cece5a710871f1d0c1bf1d25e3a712
tree0a9beb2cbb153d7b4715d6004df21ee210027640
parentcfe0a0194b9d666593a1495980a1591c9c948da8
utils: os_unix: Use access() for checking file existence

Trying to open file for checking file existence seems to be too much.
Instead use access system call which is meant for the same.

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
src/utils/os_unix.c