Subject: Bug#3736: cpio --sparse miscopies libc.so.4.6.27 !

From: Ian Jackson <[email-masked]>
Date: Tue, 9 Jul 96 22:32 BST

Package: cpio
Version: 2.4.2-4

-chiark:~> cd /lib
-chiark:/lib> ll libc.so.4.6.27 
-rwxr-xr-x   1 root     root       634880 Nov 10  1995 libc.so.4.6.27*
-chiark:/lib> md5sum libc.so.4.6.27 
e6f27f4500690702eb42c03ad0706c9b  libc.so.4.6.27
-chiark:/lib> rm -rf ~/junk/d/*
-chiark:/lib> echo libc.so.4.6.27 | cpio --sparse -pvm ~/junk/d
/usr/ian-home/junk/d/libc.so.4.6.27
1240 blocks
-chiark:/lib> ll ~/junk/d/libc.so.4.6.27 
-rwxr-xr-x   1 ian      ian        631296 Nov 10  1995 /usr/ian-home/junk/d/libc.so.4.6.27*
-chiark:/lib> md5sum ~/junk/d/libc.so.4.6.27 
64c93db33c402276e07e6a6da613601c  /usr/ian-home/junk/d/libc.so.4.6.27
-chiark:/lib> rm ~/junk/d/libc.so.4.6.27 
-chiark:/lib> echo libc.so.4.6.27 | cpio -pvm ~/junk/d
/usr/ian-home/junk/d/libc.so.4.6.27
1240 blocks
-chiark:/lib> md5sum ~/junk/d/libc.so.4.6.27 
e6f27f4500690702eb42c03ad0706c9b  /usr/ian-home/junk/d/libc.so.4.6.27
-chiark:/lib> ll ~/junk/d/libc.so.4.6.27 
-rwxr-xr-x   1 ian      ian        634880 Nov 10  1995 /usr/ian-home/junk/d/libc.so.4.6.27*
-chiark:/lib> ldd /usr/bin/cpio 
        libc.so.5 => /lib/libc.so.5.2.18
-chiark:/lib> dpkg -l libc5 cpio
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  libc5           5.2.18-7       The Linux C library version 5 (run-time libr
ii  cpio            2.4.2-4        GNU cpio -- a program to manage archives of 
-chiark:/lib> 

Ian.