]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/coredumpctl.c
shared: add process-util.[ch]
[thirdparty/systemd.git] / src / journal / coredumpctl.c
index afb39ad035cb871e67b99e9f423821542bd59c2d..4f6ddfae2e6bf14f256a082a35b14421b7a24c9c 100644 (file)
@@ -35,9 +35,9 @@
 #include "pager.h"
 #include "macro.h"
 #include "journal-internal.h"
-#include "copy.h"
 #include "compress.h"
 #include "sigbus.h"
+#include "process-util.h"
 
 static enum {
         ACTION_NONE,
@@ -650,7 +650,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 {