]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fsck: use correct errno
authorMike Yuan <me@yhndnzj.com>
Thu, 14 Dec 2023 15:38:39 +0000 (23:38 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 15 Dec 2023 13:21:15 +0000 (21:21 +0800)
src/fsck/fsck.c

index 000ed69667d51ccde248244a0408bf2db38b0932..729209fc89d5016c99c7cfcb2743d2cde52a2921 100644 (file)
@@ -177,7 +177,7 @@ static int process_progress(int fd, FILE* console) {
                         else if (feof(f))
                                 r = 0;
                         else
-                                r = log_warning_errno(SYNTHETIC_ERRNO(errno), "Failed to parse progress pipe data");
+                                r = log_warning_errno(SYNTHETIC_ERRNO(EINVAL), "Failed to parse progress pipe data.");
 
                         break;
                 }