chiark / gitweb /
errno is positive
[elogind.git] / src / shared / install.c
index 9e870392f232c0c620b429351793ba2c2e5deb28..b368b9f9ab1eae2fa952b458669b500f633ab2d1 100644 (file)
@@ -1637,7 +1637,7 @@ UnitFileState unit_file_get_state(
                         return state;
 
                 r = unit_file_can_install(&paths, root_dir, path, true);
-                if (r < 0 && errno != -ENOENT)
+                if (r < 0 && errno != ENOENT)
                         return r;
                 else if (r > 0)
                         return UNIT_FILE_DISABLED;