This allows to correctly extract files in such directories. In copy-in mode, permissions of a directory are restored if it appears in the file list after files in it e. This fixes debian bug Fix possible memory overflow in the rmt client code CVE Ensure record headers are properly packed fix builds on ARM.
Fix exit codes to reliably indicate success or failure of the operation. Fix large file support. Support MinGW builds. Minor bugfixes. Licensed under the GPLv3. Bugfixes Honor umask when creating intermediate directories, not specified in the archive debian bug Option --owner can be used in copy-out mode, allowing to uniformly override the ownership of the files being added to the archive. Bugfixes: Symlinks were handled incorrectly in copy-out mode.
Fix handling of large files. Fix setting the file permissions in copy-out mode. Fix CAN Improved error checking and diagnostics Fixed CAN Allow to use --sparse in both copy-in and copy-pass. Fix bug that eventually caused copying out the same hard-linked file several times to archive. Fix several LFS-related issues. Fix Debian bug Added NLS support Improved configure script Improved invocation consistency checking and help output Printing warning about truncation of inode numbers is suppressed by default.
This section summarizes all available command line options. References in square brackets after each option indicate cpio modes in which this option is valid. GNU find is one way to produce a list of null-terminated filenames. This option may be used in copy-out and copy-pass modes. Only works in copy-out mode. This option may be used in copy-in mode. Use this option to convert bit integers between big-endian and little-endian machines.
Initially the block size is bytes. This can be used, for example, to extract an archive contents in a different directory:. For example, the following invocation:. The lines of file are treated as if they had been non-option arguments to cpio. This option is used in copy-in mode,. The valid formats are listed below with file size limits for individual files in parentheses; the same names are also recognized in all-caps.
The new SVR4 portable format, which supports file systems having more than i-nodes. Also recognizes GNU tar archives, which are similar but not identical. This option can be used in copy-in mode and copy-pass mode. In copy-out mode, store the supplied owner information in the archive. The argument can be either the user name or the user name and group name, separated by a dot or a colon, or the group name, preceeded by a dot or a colon, as shown in the examples below:.
The argument parts are first looked up in the system user and group databases, correspondingly. If any of them is not found there, it is treated as numeric UID or GID, provided that it consists of decimal digits only. To avoid the lookup and ensure that arguments are treated as numeric values, prefix them with a plus sign, e. This option can be used in copy-in mode. This option is used in copy-in and copy-pass modes.
In a verbose table of contents of a ustar archive, user and group names in the archive that do not exist on the local system are replaced by the names that correspond locally to the numeric UID and GID stored in the archive.
The argument is one of the following:. Archives are usually written on removable media—tape cartridges, mag tapes, or floppy disks. The amount of data a tape or disk holds depends not only on its size, but also on how it is formatted. A foot long reel of mag tape holds 40 megabytes of data when formated at bits per inch. Magnetic media are re-usable—once the archive on a tape is no longer needed, the archive can be erased and the tape or disk used over. Media quality does deteriorate with use, however.
Most tapes or disks should be disgarded when they begin to produce data errors. Magnetic media are written and erased using magnetic fields, and should be protected from such fields to avoid damage to stored data. Sticking a floppy disk to a filing cabinet using a magnet is probably not a good idea. It is possible you will encounter a bug in cpio. If this happens, we would like to hear about it. As the purpose of bug reporting is to improve software, please be sure to include maximum information when reporting a bug.
The information needed is:. Send your report to bug-cpio gnu.
0コメント