diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-10-04 23:01:32 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-12-08 07:27:34 +0100 |
commit | 5b65a773c10cdab7e9f36312dd4f7cabea3d9bf5 (patch) | |
tree | b3af58441e6566e5629b721c07f7606b14d79e54 /src/login/logind-user.c | |
parent | 76937fb46f5e25e982ea90243b625cf91a869964 (diff) |
tree-wide: use IN_SET macro (#6977)
Diffstat (limited to 'src/login/logind-user.c')
-rw-r--r-- | src/login/logind-user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 485be84f6..7824a1c8e 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -570,7 +570,7 @@ static int user_remove_runtime_path(User *u) { * quite possible, if we lacked the permissions to mount * something */ r = umount2(u->runtime_path, MNT_DETACH); - if (r < 0 && errno != EINVAL && errno != ENOENT) + if (r < 0 && !IN_SET(errno, EINVAL, ENOENT)) log_error_errno(errno, "Failed to unmount user runtime directory %s: %m", u->runtime_path); r = rm_rf(u->runtime_path, REMOVE_ROOT); |