diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/kbd-util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/kbd-util.c b/src/shared/kbd-util.c index 3100862548..e6fe973471 100644 --- a/src/shared/kbd-util.c +++ b/src/shared/kbd-util.c @@ -145,11 +145,11 @@ int keymap_exists(const char *name) { &(struct recurse_dir_userdata) { .keymap_name = name, }); - if (r == -ENOENT) - continue; - if (ERRNO_IS_RESOURCE(r)) - return r; if (r < 0) { + if (r == -ENOENT) + continue; + if (ERRNO_IS_RESOURCE(r)) + return r; log_debug_errno(r, "Failed to read keymap list from %s, ignoring: %m", dir); continue; } |