bin/74801: cpio -p --sparse creates truncated files

Toerless Eckert tte at fau.de
Mon Dec 6 23:00:43 PST 2004


>Number:         74801
>Category:       bin
>Synopsis:       cpio -p --sparse creates truncated files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 07:00:42 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Toerless Eckert
>Release:        5.3
>Organization:
>Environment:
FreeBSD eckert-mistpc 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Copying binary files from windows (.exe, .dll) with "cpio -p --sparse"
does create files that are truncated. These files seem to have multiple hole (0) segments and zero segments at the end of the files.

Copying works fine without "--sparse". 
>How-To-Repeat:
Try copying windows binaries or dlls. Example file is from Acrobat
Reader 5.0:
% echo ACROFX32.DLL | /usr/bin/cpio -p --sparse /tmp
% ls -l ACROFX32.DLL /tmp/ACROFX32.DLL 
-rw-r--r--  1 root    wheel  52224 Dec  6 17:49 /tmp/ACROFX32.DLL
-rw-r--r--  1 root    staff  53248 Apr 16  2001 ACROFX32.DLL

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list