1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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

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;
}