diff options
58 files changed, 132 insertions, 161 deletions
@@ -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 |
@@ -1,6 +1,6 @@ | |||
1 | GNU cpio NEWS -- history of user-visible changes. 2014-12-01 | 1 | GNU cpio NEWS -- history of user-visible changes. 2015-09-12 |
2 | Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, | 2 | Copyright (C) 2003-2007, 2009-2010, 2014-2015 Free Software Foundation, |
3 | 2010, 2014 Free Software Foundation, Inc. | 3 | Inc. |
4 | See the end of file for copying conditions. | 4 | See the end of file for copying conditions. |
5 | 5 | ||
6 | Please send cpio bug reports to <bug-cpio@gnu.org>. | 6 | Please send cpio bug reports to <bug-cpio@gnu.org>. |
@@ -1,71 +1,58 @@ | |||
1 | This is GNU cpio, a program to manage archives of files. | 1 | This is the GNU cpio package |
2 | As of version 2.0, it supports the features of the System V release 4 | 2 | ============================ |
3 | cpio, including support for tar archives. | ||
4 | 3 | ||
5 | This package also includes rmt, the remote tape server, and mt, a tape | 4 | * Introduction |
6 | drive control program; these two programs will only be compiled if | 5 | ============== |
7 | your system supports remote command execution, and tape drive control | ||
8 | operations, respectively. | ||
9 | 6 | ||
10 | See the file INSTALL for compilation and installation instructions for Unix. | 7 | GNU cpio copies files between archives and directories. It supports |
8 | the following archive formats: old binary cpio, old portable cpio, SVR4 | ||
9 | cpio with and without checksum, HP cpio, and various tar formats. | ||
11 | 10 | ||
12 | For non-Unix systems [ Note: The non-Unix makefiles have not been tested | 11 | This file contains brief information about configuring and compiling |
13 | for this release ] | 12 | GNU cpio. It is *not* intended as a replacement for the documentation, |
13 | and is provided as a brief reference only. | ||
14 | 14 | ||
15 | makefile.pc is a makefile for Turbo C or C++ or Borland C++ on MS-DOS. | 15 | The complete documentation for GNU cpio is available in the subdirectory |
16 | doc. To read it without installing the package run `info -f doc/cpio.info', | ||
17 | or `man ./doc/cpio.1'. | ||
16 | 18 | ||
17 | makefile.os2 is a makefile for MS C and GNU C (emx/gcc) on OS/2. | 19 | The documentation in various formats is also available online at |
18 | cpio.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 | ||
21 | The main advantages of GNU cpio over Unix versions are: | 24 | A 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, | 30 | See the file INSTALL for generic options to ./configure. |
26 | with `-L', as the files they point to. | ||
27 | 31 | ||
28 | * `-i' automatically recognizes the archive format and tries to | 32 | * Bug reporting. |
29 | recover from corrupted archives. | ||
30 | 33 | ||
31 | * The output of '-itv' looks like 'ls -l'. | 34 | Please send bug reports and suggestions to <bug-cpio@gnu.org>. |
32 | 35 | ||
33 | * It accepts long-named options as well as traditional | 36 | |
34 | single-character options. | 37 | * Copyright information |
35 | 38 | ||
36 | A few features of other versions of cpio are missing from GNU cpio, including: | 39 | Copyright (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 | |
43 | GNU cpio supports the POSIX.1 "ustar" tar format. GNU tar supports a | 49 | carry prominent notices stating who last changed them. |
44 | somewhat different, early draft of that format. That draft format has | 50 | |
45 | a slightly different magic number in the tar header and doesn't | 51 | Local variables: |
46 | include the path prefix part of the header, which allows storing file | 52 | mode: outline |
47 | names that are longer than 100 characters. GNU cpio knows to | 53 | paragraph-separate: "[ ]*$" |
48 | recognize the nonstandard GNU tar "ustar" archives. | 54 | eval: (add-hook 'write-file-hooks 'time-stamp) |
49 | 55 | time-stamp-start: "changes. " | |
50 | The following patch to GNU tar 1.11.1 makes GNU tar recognize standard | 56 | time-stamp-format: "%:y-%02m-%02d" |
51 | "ustar" archives, such as GNU cpio produces, except that it won't use | 57 | time-stamp-end: "\n" |
52 | the path prefix. Without this patch, GNU tar thinks that standard | 58 | end: |
53 | "ustar" archives are old-format tar archives and can not use the extra | ||
54 | information that "ustar" format contains. If you use this patch, | ||
55 | remember that you will lose the beginnings of paths that are longer | ||
56 | than 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 | |||
71 | Mail 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 | ||
44 | Copyright (C) 2004, 2006-2007, 2009-2010, 2014 Free Software Foundation, | 44 |