From: Lennart Poettering Date: Tue, 9 Jun 2020 14:13:51 +0000 (+0200) Subject: login: use ERRNO_IS_PRIVILEGE() where appropriate X-Git-Tag: v246-rc1~175^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c90745349e18ec0bd0a7d2affb139400d8777a;p=thirdparty%2Fsystemd.git login: use ERRNO_IS_PRIVILEGE() where appropriate --- diff --git a/src/login/user-runtime-dir.c b/src/login/user-runtime-dir.c index 4055c910c2d..fdf0124c416 100644 --- a/src/login/user-runtime-dir.c +++ b/src/login/user-runtime-dir.c @@ -78,7 +78,7 @@ static int user_mkdir_runtime_path( r = mount("tmpfs", runtime_path, "tmpfs", MS_NODEV|MS_NOSUID, options); if (r < 0) { - if (!IN_SET(errno, EPERM, EACCES)) { + if (!ERRNO_IS_PRIVILEGE(errno)) { r = log_error_errno(errno, "Failed to mount per-user tmpfs directory %s: %m", runtime_path); goto fail; }