diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-03-02 09:20:57 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-03-02 09:20:57 +0000 |
commit | a2cdd95181d74db0574de15445e5fdc9ddba9abd (patch) | |
tree | aa05bdbb352273a3c917bef93d1e2be1a69f2af5 | |
parent | 74a1ca9553d1e67ba26de502874c4d7e68f2294a (diff) | |
download | cpio-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"), |