aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am2
-rw-r--r--NEWS6
-rw-r--r--README99
-rw-r--r--README-alpha4
-rw-r--r--TODO27
-rw-r--r--bootstrap.conf4
-rw-r--r--configure.ac4
-rw-r--r--doc/Makefile.am3
-rw-r--r--doc/cpio.12
-rw-r--r--doc/cpio.texi4
-rwxr-xr-xdoc/gendocs.sh3
-rwxr-xr-xdoc/gendocs_template2
-rw-r--r--doc/mt.12
-rw-r--r--lib/Makefile.am4
-rw-r--r--mingw.m42
-rw-r--r--po/.gitignore3
-rw-r--r--po/POTFILES.in2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/copyin.c4
-rw-r--r--src/copyout.c4
-rw-r--r--src/copypass.c4
-rw-r--r--src/cpio.h4
-rw-r--r--src/cpiohdr.h4
-rw-r--r--src/defer.c4
-rw-r--r--src/defer.h4
-rw-r--r--src/dstring.c2
-rw-r--r--src/dstring.h2
-rw-r--r--src/extern.h2
-rw-r--r--src/fatal.c3
-rw-r--r--src/filemode.c4
-rw-r--r--src/filetypes.h3
-rw-r--r--src/global.c2
-rw-r--r--src/idcache.c4
-rw-r--r--src/main.c2
-rw-r--r--src/makepath.c4
-rw-r--r--src/mt.c4
-rw-r--r--src/tar.c4
-rw-r--r--src/tar.h3
-rw-r--r--src/tarhdr.h3
-rw-r--r--src/userspec.c2
-rw-r--r--src/util.c4
-rw-r--r--sysdep.m42
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/atlocal.in2
-rw-r--r--tests/inout.at4
-rw-r--r--tests/interdir.at2
-rw-r--r--tests/setstat01.at2
-rw-r--r--tests/setstat02.at2
-rw-r--r--tests/setstat03.at2
-rw-r--r--tests/setstat04.at2
-rw-r--r--tests/setstat05.at2
-rw-r--r--tests/symlink-bad-length.at2
-rw-r--r--tests/symlink-long.at2
-rw-r--r--tests/symlink-to-stdout.at3
-rw-r--r--tests/symlink.at3
-rw-r--r--tests/testsuite.at4
-rw-r--r--tests/version.at4
58 files changed, 132 insertions, 161 deletions
diff --git a/.gitignore b/.gitignore
index ea5bcba..fae03de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
1/ABOUT-NLS~
1*.a 2*.a
2*.o 3*.o
3*.patch 4*.patch
diff --git a/Makefile.am b/Makefile.am
index 5c27935..e0be591 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
1# This file is part of GNU cpio 1# This file is part of GNU cpio
2# Copyright (C) 2003-2004, 2007, 2009-2010, 2014 Free Software 2# Copyright (C) 2003-2004, 2007, 2009-2010, 2014-2015 Free Software
3# Foundation, Inc. 3# Foundation, Inc.
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# This program is free software; you can redistribute it and/or modify
diff --git a/NEWS b/NEWS
index dbd6ce6..8ea2769 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
1GNU cpio NEWS -- history of user-visible changes. 2014-12-01 1GNU cpio NEWS -- history of user-visible changes. 2015-09-12
2Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2Copyright (C) 2003-2007, 2009-2010, 2014-2015 Free Software Foundation,
32010, 2014 Free Software Foundation, Inc. 3Inc.
4See the end of file for copying conditions. 4See the end of file for copying conditions.
5 5
6Please send cpio bug reports to <bug-cpio@gnu.org>. 6Please send cpio bug reports to <bug-cpio@gnu.org>.
diff --git a/README b/README
index fafff13..e8af957 100644
--- a/README
+++ b/README
@@ -1,71 +1,58 @@
1This is GNU cpio, a program to manage archives of files. 1This is the GNU cpio package
2As of version 2.0, it supports the features of the System V release 4 2============================
3cpio, including support for tar archives.
4 3
5This package also includes rmt, the remote tape server, and mt, a tape 4* Introduction
6drive control program; these two programs will only be compiled if 5==============
7your system supports remote command execution, and tape drive control
8operations, respectively.
9 6
10See the file INSTALL for compilation and installation instructions for Unix. 7GNU cpio copies files between archives and directories. It supports
8the following archive formats: old binary cpio, old portable cpio, SVR4
9cpio with and without checksum, HP cpio, and various tar formats.
11 10
12For non-Unix systems [ Note: The non-Unix makefiles have not been tested 11This file contains brief information about configuring and compiling
13 for this release ] 12GNU cpio. It is *not* intended as a replacement for the documentation,
13and is provided as a brief reference only.
14 14
15makefile.pc is a makefile for Turbo C or C++ or Borland C++ on MS-DOS. 15The complete documentation for GNU cpio is available in the subdirectory
16doc. To read it without installing the package run `info -f doc/cpio.info',
17or `man ./doc/cpio.1'.
16 18
17makefile.os2 is a makefile for MS C and GNU C (emx/gcc) on OS/2. 19The documentation in various formats is also available online at
18cpio.def is a linker definition file for the MS C OS/2 version. 20<http://www.gnu.org/software/cpio/manual/>.
19 21
22* Building
20 23
21The main advantages of GNU cpio over Unix versions are: 24A usual three-stage procedure applies:
22 25
23* It can access tape drives on other hosts using TCP/IP. 26 ./configure
27 make
28 make install
24 29
25* `-o' and `-p' can copy symbolic links either as symbolic links or, 30See the file INSTALL for generic options to ./configure.
26with `-L', as the files they point to.
27 31
28* `-i' automatically recognizes the archive format and tries to 32* Bug reporting.
29recover from corrupted archives.
30 33
31* The output of '-itv' looks like 'ls -l'. 34Please send bug reports and suggestions to <bug-cpio@gnu.org>.
32 35
33* It accepts long-named options as well as traditional 36
34single-character options. 37* Copyright information
35 38
36A few features of other versions of cpio are missing from GNU cpio, including: 39Copyright (C) 2003-2007, 2009-2010, 2014-2015 Free Software Foundation, Inc.
37 40
38* The `-6' option to support Sixth Edition Unix cpio archives with `-i'. 41 Permission is granted to anyone to make or distribute verbatim copies
42 of this document as received, in any medium, provided that the
43 copyright notice and this permission notice are preserved,
44 thus giving the recipient permission to redistribute in turn.
39 45
40* An option to limit volume size, like afio -s. 46 Permission is granted to distribute modified versions
41 47 of this document, or of portions of it,
42 48 under the above conditions, provided also that they
43GNU cpio supports the POSIX.1 "ustar" tar format. GNU tar supports a 49 carry prominent notices stating who last changed them.
44somewhat different, early draft of that format. That draft format has 50
45a slightly different magic number in the tar header and doesn't 51Local variables:
46include the path prefix part of the header, which allows storing file 52mode: outline
47names that are longer than 100 characters. GNU cpio knows to 53paragraph-separate: "[ ]*$"
48recognize the nonstandard GNU tar "ustar" archives. 54eval: (add-hook 'write-file-hooks 'time-stamp)
49 55time-stamp-start: "changes. "
50The following patch to GNU tar 1.11.1 makes GNU tar recognize standard 56time-stamp-format: "%:y-%02m-%02d"
51"ustar" archives, such as GNU cpio produces, except that it won't use 57time-stamp-end: "\n"
52the path prefix. Without this patch, GNU tar thinks that standard 58end:
53"ustar" archives are old-format tar archives and can not use the extra
54information that "ustar" format contains. If you use this patch,
55remember that you will lose the beginnings of paths that are longer
56than 100 characters. That's why it's not an official part of GNU tar.
57(Adding support for the path prefix to GNU tar is not trivial.)
58
59--- list.c.orig Mon Sep 14 17:04:03 1992
60+++ list.c Wed Oct 14 14:02:28 1992
61@@ -439,7 +439,7 @@
62 st->st_ctime = from_oct(1+12, header->header.ctime);
63 }
64
65- if (0==strcmp(header->header.magic, TMAGIC)) {
66+ if (0==strncmp(header->header.magic, TMAGIC, 5)) {
67 /* Unix Standard tar archive */
68 *stdp = 1;
69 if (wantug) {
70
71Mail suggestions and bug reports for GNU cpio to bug-cpio@gnu.org.
diff --git a/README-alpha b/README-alpha
index 0b04e4b..a8288ba 100644
--- a/README-alpha
+++ b/README-alpha
@@ -41,8 +41,8 @@ See INSTALL and README for the detailed instructions.
41 41
42* Copyright information: 42* Copyright information:
43 43
44Copyright (C) 2004, 2006-2007, 2009-2010, 2014 Free Software Foundation, 44