1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00
freebsd/contrib/cpio
1998-06-30 19:53:09 +00:00
..
alloca.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
ChangeLog Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
copyin.c Fixed printf format errors. 1998-06-30 19:53:09 +00:00
COPYING Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
COPYING.LIB Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
copyout.c Output a zero rdev except for bdevs, cdevs, fifos and sockets. This 1997-03-30 10:34:16 +00:00
copypass.c Create fifos using mkfifo() instead of attempting to create them using 1997-07-13 14:07:48 +00:00
cpio.1 fix misspelling 1997-08-30 11:01:54 +00:00
cpio.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
cpio.texi Virgin import of GNU cpio v2.4.2. 1997-03-31 09:37:59 +00:00
cpiohdr.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
defer.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
defer.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
dirname.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
dstring.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
dstring.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
error.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
extern.h Support dummy lchown() so that cpio understands 4.4 symbolic links. 1997-03-30 10:45:44 +00:00
filemode.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
filetypes.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
FREEBSD-upgrade I clamined to not have imported cpio.texi. This is not true. 1997-08-25 09:11:06 +00:00
getopt1.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
getopt.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
getopt.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
global.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
idcache.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
main.c Don't set the umask until after we have processed the arguments 1997-03-30 10:50:01 +00:00
makepath.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
NEWS Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
README Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
rmt.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
rtapelib.c don't lookup rsh(1) at bogus pathnames 1997-03-30 10:56:38 +00:00
safe-stat.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
stripslash.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
system.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
tar.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
tar.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
tarhdr.h Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
userspec.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
util.c JKH says: 1997-03-30 11:01:43 +00:00
version.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
xmalloc.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00
xstrdup.c Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00

This is GNU cpio, a program to manage archives of files.
As of version 2.0, it supports the features of the System V release 4
cpio, including support for tar archives.

This package also includes rmt, the remote tape server, and mt, a tape
drive control program; these two programs will only be compiled if
your system supports remote command execution, and tape drive control
operations, respectively.

See the file INSTALL for compilation and installation instructions for Unix.

For non-Unix systems:

makefile.pc is a makefile for Turbo C or C++ or Borland C++ on MS-DOS.

makefile.os2 is a makefile for MS C and GNU C (emx/gcc) on OS/2.
cpio.def is a linker definition file for the MS C OS/2 version.


The main advantages of GNU cpio over Unix versions are:

* It can access tape drives on other hosts using TCP/IP.

* `-o' and `-p' can copy symbolic links either as symbolic links or,
with `-L', as the files they point to.

* `-i' automatically recognizes the archive format and tries to
recover from corrupted archives.

* The output of '-itv' looks like 'ls -l'.

* It accepts long-named options as well as traditional
single-character options.

A few features of other versions of cpio are missing from GNU cpio, including:

* The `-6' option to support Sixth Edition Unix cpio archives with `-i'.

* An option to limit volume size, like afio -s.


GNU cpio supports the POSIX.1 "ustar" tar format.  GNU tar supports a
somewhat different, early draft of that format.  That draft format has
a slightly different magic number in the tar header and doesn't
include the path prefix part of the header, which allows storing file
names that are longer than 100 characters.  GNU cpio knows to
recognize the nonstandard GNU tar "ustar" archives.

The following patch to GNU tar 1.11.1 makes GNU tar recognize standard
"ustar" archives, such as GNU cpio produces, except that it won't use
the path prefix.  Without this patch, GNU tar thinks that standard
"ustar" archives are old-format tar archives and can not use the extra
information that "ustar" format contains.  If you use this patch,
remember that you will lose the beginnings of paths that are longer
than 100 characters.  That's why it's not an official part of GNU tar.
(Adding support for the path prefix to GNU tar is not trivial.)

--- list.c.orig Mon Sep 14 17:04:03 1992
+++ list.c      Wed Oct 14 14:02:28 1992
@@ -439,7 +439,7 @@
                st->st_ctime = from_oct(1+12, header->header.ctime);
        }
 
-       if (0==strcmp(header->header.magic, TMAGIC)) {
+       if (0==strncmp(header->header.magic, TMAGIC, 5)) {
                /* Unix Standard tar archive */
                *stdp = 1;
                if (wantug) {

Mail suggestions and bug reports for GNU cpio to
bug-gnu-utils@prep.ai.mit.edu.