]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-user.c
tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`
[thirdparty/systemd.git] / src / login / logind-user.c
index 66d9d06b5f17e07458148d2ebf3fb6e4c3e99805..d2e5c74fabbffc2529b6c933984c4032970c401a 100644 (file)
@@ -354,7 +354,7 @@ static int user_mkdir_runtime_path(User *u) {
 
                 r = mount("tmpfs", u->runtime_path, "tmpfs", MS_NODEV|MS_NOSUID, t);
                 if (r < 0) {
-                        if (errno != EPERM && errno != EACCES) {
+                        if (!IN_SET(errno, EPERM, EACCES)) {
                                 r = log_error_errno(errno, "Failed to mount per-user tmpfs directory %s: %m", u->runtime_path);
                                 goto fail;
                         }