Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2004 06:57:27 GMT
From:      Toerless Eckert <tte@fau.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/74801: cpio -p --sparse creates truncated files
Message-ID:  <200412070657.iB76vR7R077355@www.freebsd.org>
Resent-Message-ID: <200412070700.iB770haM004645@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412070657.iB76vR7R077355>