cpio/cpio-2.9-exitCode.patch
Pavel Raiskup fe198e6d04 rebase: new upstream version 2.12
* removed several upstreamed patches
* start using %autosetup macro
* remove 'autoreconf' call as it is not needed yet

Version: 2.12-1
2015-09-14 10:06:49 +02:00

19 lines
615 B
Diff

From: Peter Vrabec <pvrabec@redhat.com>
Date: Mon, 14 Sep 2015 09:31:08 +0200
Subject: [PATCH 2/7] set exit code to 1 when cpio fails to store file > 4GB
(#183224)
diff --git a/src/copyout.c b/src/copyout.c
index 1f0987a..dcae449 100644
--- a/src/copyout.c
+++ b/src/copyout.c
@@ -287,7 +287,7 @@ to_ascii (char *where, uintmax_t v, size_t digits, unsigned logbase)
static void
field_width_error (const char *filename, const char *fieldname)
{
- error (0, 0, _("%s: field width not sufficient for storing %s"),
+ error (1, 0, _("%s: field width not sufficient for storing %s"),
filename, fieldname);
}