chiark / gitweb /
importd: add new bus calls for importing local tar and raw images
[elogind.git] / src / journal / coredump-vacuum.c
index 5f2ff2a02522f0b5fe6fa61c0ffb8a23ac59412b..9b73795e5bb27843a5bbef60c4febce84a0b6920 100644 (file)
@@ -139,10 +139,8 @@ int coredump_vacuum(int exclude_fd, off_t keep_free, off_t max_use) {
                 return 0;
 
         if (exclude_fd >= 0) {
-                if (fstat(exclude_fd, &exclude_st) < 0) {
-                        log_error_errno(errno, "Failed to fstat(): %m");
-                        return -errno;
-                }
+                if (fstat(exclude_fd, &exclude_st) < 0)
+                        return log_error_errno(errno, "Failed to fstat(): %m");
         }
 
         /* This algorithm will keep deleting the oldest file of the