From: Yu Watanabe Date: Mon, 14 Dec 2020 15:55:57 +0000 (+0900) Subject: core/namespace: do not ignore non-EPERM mount error X-Git-Tag: v248-rc1~509^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad74f28a13d38355150bca5e55e5ab3dc8472d64;p=thirdparty%2Fsystemd.git core/namespace: do not ignore non-EPERM mount error Follow-up for 61f8a7bd3e20222617fc59f398071daf2af86f96. --- diff --git a/src/core/namespace.c b/src/core/namespace.c index 93eab45e21e..39729ba8992 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -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; }