Merge "Fix logical bugs around access() POSIX call" am: e50efc781a am: f6f84d04b2 am: c1d2c3514c am: d72b556518

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2118747

Change-Id: I9446682ec24dc65f48c762cd6fe496c4c7a76e4a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>