From owner-cvs-gnu Sun Jun 25 23:25:01 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA27554 for cvs-gnu-outgoing; Sun, 25 Jun 1995 23:25:01 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA27524 ; Sun, 25 Jun 1995 23:24:51 -0700 Date: Sun, 25 Jun 1995 23:24:51 -0700 From: Bruce Evans Message-Id: <199506260624.XAA27524@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.bin/cpio copyout.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk bde 95/06/25 23:24:50 Modified: bin/pax pax.h gnu/usr.bin/tar create.c tar.c gnu/usr.bin/cpio copyout.c Log: Improve the handling of large minor numbers: cpio/copyout.c: Don't output a file if the major, minor or totality of its rdev would be truncated. Print a message about the skipped files to stderr but don't report the error in the exit status. cpio's abysmal error handling doesn't allow continuing after an error, and the rdev checks had to be misplaced to avoid the problem of returning an error code from routines that return void. pax/pax.h: Use the system macros for major(), minor() and makedev(). pax already checks _all_ output conversions for overflow. This has the undesirable effect that failure to convert relatively useless fields such as st_dev for regular files causes files not to be output. pax doesn't report exactly which fields couldn't be converted. tar/create.c: Don't output a file if the major or minor its rdev would be truncated. Print a message about the skipped files to stderr and report the error in the exit status. tar/tar.c: For not immediately fatal errors, exit with status 1, not the error count (mod 256). All: Minor numbers are limited to 21 bits in pax's ustar format and to 18 bits in archives created by gnu tar (gnu tar wastes 3 bits for padding). pax's and cpio's ustar format is incompatible with gnu tar's ustar format for other reasons (see cpio/README).