]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
cpio: Set lafe_warnc code to 0 2910/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 16 Mar 2026 13:34:32 +0000 (14:34 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 16 Mar 2026 13:34:32 +0000 (14:34 +0100)
Otherwise an unknown error is printed, which does not help the user
(especially since a custom message is printed in this case already).

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
cpio/cpio.c

index b687f3b8fc519bf6e3b5e67001d47945a1facee3..a630bc0c1faacbbc43ba30e25719c1b460b8673e 100644 (file)
@@ -320,7 +320,7 @@ main(int argc, char *argv[])
                        if (owner_parse(cpio->argument, &owner, &errmsg) != 0) {
                                if (!errmsg)
                                        errmsg = "Error parsing owner";
-                               lafe_warnc(-1, "%s", errmsg);
+                               lafe_warnc(0, "%s", errmsg);
                                usage();
                        }
                        if (owner.uid != -1)