core/namespace: do not ignore non-EPERM mount error

Follow-up for 61f8a7bd3e.
This commit is contained in:
Yu Watanabe 2020-12-15 00:55:57 +09:00
parent 23d8003bb6
commit ad74f28a13
1 changed files with 2 additions and 1 deletions

View File

@ -914,7 +914,8 @@ static int mount_procfs(const MountEntry *m, const NamespaceInfo *ns_info) {
if (r == 0)
/* /proc is not mounted. Propagate the original error code. */
return -EPERM;
}
} else if (r < 0)
return r;
return 1;
}