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:
parent
23d8003bb6
commit
ad74f28a13
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user