Commit 4dc36c99 authored by Chengwei Yang's avatar Chengwei Yang
Browse files

Fix incorrect access mode check



The O_* variales are integers and aren't not suitable with bit
operation, because O_RDONLY is 0, so if the mode is O_RDONLY, (mode &
O_RDONLY) always return false. So the access mode is always 0,
that means F_OK rather than R_OK.

Change-Id: If750f85864d32f7d0a039b2ee114ef133a311434
Signed-off-by: default avatarChengwei Yang <chengwei.yang@intel.com>
parent f7271758
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment