aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-03-02 09:20:57 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-03-02 09:20:57 +0000
commita2cdd95181d74db0574de15445e5fdc9ddba9abd (patch)
treeaa05bdbb352273a3c917bef93d1e2be1a69f2af5
parent74a1ca9553d1e67ba26de502874c4d7e68f2294a (diff)
downloadcpio-a2cdd95181d74db0574de15445e5fdc9ddba9abd.tar.gz
cpio-a2cdd95181d74db0574de15445e5fdc9ddba9abd.tar.bz2
(copy_files_disk_to_disk): Bugfix. If a file
grew n bytes in copy-pass mode, these n bytes got prepended to the contents of all subsequent files. Fix provided by Holger Fleischmann <holger_fleischmann@mra.man.de>
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index f94cb75..1cbaa25 100644
--- a/src/util.c
+++ b/src/util.c
@@ -540,7 +540,7 @@ copy_files_disk_to_disk (in_des, out_des, num_bytes, filename)
while (num_bytes > 0)
{
if (input_size == 0)
- if (rc = disk_fill_input_buffer (in_des, DISK_IO_BLOCK_SIZE))
+ if (rc = disk_fill_input_buffer (in_des, num_bytes))
{
if (rc > 0)
error (0, 0, _("File %s shrunk by %ld bytes, padding with zeros"),

Return to:

Send suggestions and report system problems to the System administrator.