chiark / gitweb /
sd-device: initialize variable
[elogind.git] / src / journal / coredumpctl.c
index afb39ad035cb871e67b99e9f423821542bd59c2d..4026a1c26f14e414f202e23e8ec22b3c5b8683c0 100644 (file)
@@ -35,7 +35,6 @@
 #include "pager.h"
 #include "macro.h"
 #include "journal-internal.h"
-#include "copy.h"
 #include "compress.h"
 #include "sigbus.h"
 
@@ -650,7 +649,7 @@ static int save_core(sd_journal *j, int fd, char **path, bool *unlink_temp) {
                         }
 #else
                         log_error("Cannot decompress file. Compiled without compression support.");
-                        r = -ENOTSUP;
+                        r = -EOPNOTSUPP;
                         goto error;
 #endif
                 } else {