diff options
Diffstat (limited to 'init/mount_namespace.cpp')
-rw-r--r-- | init/mount_namespace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/mount_namespace.cpp b/init/mount_namespace.cpp index b811622c5..1a474fbf3 100644 --- a/init/mount_namespace.cpp +++ b/init/mount_namespace.cpp @@ -107,7 +107,7 @@ static bool IsApexUpdatable() { } static Result<void> MountDir(const std::string& path, const std::string& mount_path) { - if (int ret = mkdir(mount_path.c_str(), 0755); ret != 0 && ret != EEXIST) { + if (int ret = mkdir(mount_path.c_str(), 0755); ret != 0 && errno != EEXIST) { return ErrnoError() << "Could not create mount point " << mount_path; } if (mount(path.c_str(), mount_path.c_str(), nullptr, MS_BIND, nullptr) != 0) { |