diff options
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r-- | src/locale/localectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 9f996dbc98..fc312894c6 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -421,7 +421,7 @@ static int add_locales_from_libdir (Set *locales) { errno = 0; } - if (errno != 0) { + if (errno > 0) { log_error("Failed to read locale directory: %m"); return -errno; } |