Make fs_mgr_access() available to user build
fs_mgr_access() is used by a public function that is avaliable to user build. Test: build fs_mgr for user variant. Change-Id: I1ec977fa1920add7db3023b181a9a7666b0890b5
This commit is contained in:
parent
312339167e
commit
818ff63f09
|
@ -55,6 +55,13 @@ using namespace std::literals;
|
|||
using namespace android::dm;
|
||||
using namespace android::fs_mgr;
|
||||
|
||||
static bool fs_mgr_access(const std::string& path) {
|
||||
auto save_errno = errno;
|
||||
auto ret = access(path.c_str(), F_OK) == 0;
|
||||
errno = save_errno;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if ALLOW_ADBD_DISABLE_VERITY == 0 // If we are a user build, provide stubs
|
||||
|
||||
bool fs_mgr_overlayfs_mount_all(fstab*) {
|
||||
|
@ -221,13 +228,6 @@ const char* fs_mgr_mount_point(const char* mount_point) {
|
|||
return "/system";
|
||||
}
|
||||
|
||||
bool fs_mgr_access(const std::string& path) {
|
||||
auto save_errno = errno;
|
||||
auto ret = access(path.c_str(), F_OK) == 0;
|
||||
errno = save_errno;
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool fs_mgr_rw_access(const std::string& path) {
|
||||
if (path.empty()) return false;
|
||||
auto save_errno = errno;
|
||||
|
|
Loading…
Reference in New Issue