create core package
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Index: cpio-2.9/lib/rtapelib.c
|
||||
===================================================================
|
||||
--- cpio-2.9.orig/lib/rtapelib.c
|
||||
+++ cpio-2.9/lib/rtapelib.c
|
||||
@@ -573,6 +573,9 @@ rmt_read__ (int handle, char *buffer, si
|
||||
|| (status = get_status (handle)) == SAFE_READ_ERROR)
|
||||
return SAFE_READ_ERROR;
|
||||
|
||||
+ if (status > length)
|
||||
+ return SAFE_READ_ERROR;
|
||||
+
|
||||
for (counter = 0; counter < status; counter += rlen, buffer += rlen)
|
||||
{
|
||||
rlen = safe_read (READ_SIDE (handle), buffer, status - counter);
|
||||
@@ -0,0 +1,24 @@
|
||||
diff -Naurp cpio-2.9/doc/cpio.texi cpio-2.9.oden/doc/cpio.texi
|
||||
--- cpio-2.9/doc/cpio.texi 2007-06-28 10:59:24.000000000 +0200
|
||||
+++ cpio-2.9.oden/doc/cpio.texi 2008-12-20 16:52:22.000000000 +0100
|
||||
@@ -331,7 +331,8 @@ block size is 512 bytes.
|
||||
Set the I/O block size to @var{block-size} * 512 bytes.
|
||||
|
||||
@item -c
|
||||
-Use the old portable (ASCII) archive format.
|
||||
+Identical to "-H newc", use the new (SVR4) portable format.
|
||||
+If you wish the old portable (ASCII) archive format, use "-H odc" instead.
|
||||
|
||||
@item -C @var{io-size}
|
||||
@itemx --io-size=@var{io-size}
|
||||
diff -Naurp cpio-2.9/src/main.c cpio-2.9.oden/src/main.c
|
||||
--- cpio-2.9/src/main.c 2007-06-28 12:46:41.000000000 +0200
|
||||
+++ cpio-2.9.oden/src/main.c 2008-12-20 16:52:22.000000000 +0100
|
||||
@@ -338,6 +338,7 @@ parse_opt (int key, char *arg, struct ar
|
||||
case 'c': /* Use the old portable ASCII format. */
|
||||
if (archive_format != arf_unknown)
|
||||
error (0, EXIT_FAILURE, _("Archive format multiply defined"));
|
||||
+#define SVR4_COMPAT
|
||||
#ifdef SVR4_COMPAT
|
||||
archive_format = arf_newascii; /* -H newc. */
|
||||
#else
|
||||
@@ -0,0 +1,11 @@
|
||||
--- cpio-2.9/src/copyout.c.exitCode 2007-06-28 10:54:43.000000000 +0200
|
||||
+++ cpio-2.9/src/copyout.c 2007-07-16 16:23:05.000000000 +0200
|
||||
@@ -297,7 +297,7 @@ to_ascii (char *where, uintmax_t v, size
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user