chiark / gitweb /
fsckd: the error code is actually returned in 'fd'
[elogind.git] / src / login / logind-inhibit.c
index a9e14af8dbf29148b1f510a765740f9d70f17a1b..5d81693e6c0bdbd4e2b03f66ca3ac05f06553fec 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "util.h"
 #include "mkdir.h"
-#include "path-util.h"
 #include "logind-inhibit.h"
 #include "fileio.h"
 
@@ -138,7 +137,7 @@ int inhibitor_save(Inhibitor *i) {
 
 finish:
         if (r < 0)
-                log_error("Failed to save inhibit data %s: %s", i->state_file, strerror(-r));
+                log_error_errno(r, "Failed to save inhibit data %s: %m", i->state_file);
 
         return r;
 }