login: use ERRNO_IS_PRIVILEGE() where appropriate
This commit is contained in:
parent
d582afe144
commit
b8c9074534
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue