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)
|
if (r == 0)
|
||||||
/* /proc is not mounted. Propagate the original error code. */
|
/* /proc is not mounted. Propagate the original error code. */
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
}
|
} else if (r < 0)
|
||||||
|
return r;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue