mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: parts-aidl: Check r/w perms
This commit is contained in:
parent
12ee518097
commit
ae4aef0ba3
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ namespace aidl::vendor::eureka::hardware::parts {
|
|||
|
||||
static std::mutex thread_lock;
|
||||
|
||||
static inline bool swapfile_exist(void) { return access(SWAP_PATH, F_OK) == 0; }
|
||||
static inline bool swapfile_exist(void) { return access(SWAP_PATH, R_OK | W_OK) == 0; }
|
||||
|
||||
static void makeFile(int32_t mSwapSize) {
|
||||
const std::lock_guard<std::mutex> lock(thread_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue