chiark / gitweb /
shared: rework env file reader
[elogind.git] / src / locale / localectl.c
index ce31e1ffce9c97459cfe9db44090c317a1dc3d91..fc312894c6c20253926a25ab5e5fa164a36bfd58 100644 (file)
@@ -53,7 +53,7 @@ static void pager_open_if_enabled(void) {
         if (arg_no_pager)
                 return;
 
-        pager_open();
+        pager_open(false);
 }
 
 static void polkit_agent_open_if_enabled(void) {
@@ -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;
         }