Age | Commit message (Collapse) | Author | Files |
|
|
|
|
|
In copy-out mode, when appending, change_dir() would be called twice,
because process_copy_in() calls change_dir(). If --directory=DIR was
used with a relative path, this would result in incorrectly trying to
change to DIR/DIR. To fix this, change_dir() is only called
explicitly when not appending.
Patch by Alyssa Ross <hi@alyssa.is>
* src/copyout.c (process_copy_out): Don't call change_dir if
append_flag is set: it is going to be called by process_copy_in.
|
|
Thus option is valid in copy-out mode. It instructs cpio to always
assume link count for directories to be 2. It is implied by
--reproducible.
* NEWS: Document changes.
* doc/cpio.1: Likewise.
* doc/cpio.texi: Likewise.
* src/copyout.c (process_copy_out): If ignore_dirnlink_option is set,
assume c_nlink is 2.
* src/extern.h (ignore_dirnlink_option): New extern.
* src/global.c (ignore_dirnlink_option): New global.
* src/main.c: New option --ignore-dirnlink.
The option --reproducible implies --ignore-dirnlink.
|
|
|
|
|
|
|
|
|
|
* NEWS: Raise version number.
* configure.ac: Raise version number to 2.13.90.
Raise autoconf and automake requirements.
* gnulib: Pull v0.1-4336-gbdae9a5
* gnulib.modules: Remove getopt
* src/copyin.c (long_format): Cast rdev numbers to unsigned long
|
|
|
|
* doc/cpio.1: Fix typos.
* doc/cpio.texi: Consistently use proper Texinfo markup fo commands,
files, and sample text fragments.
|
|
|
|
* doc/cpio.texi: Document URLs of the mailing list archive and
subscription interface.
* src/copyin.c (try_existing_file): Change type of the last argument.
(copyin_file): Initialize existing_dir.
* src/dstring.c: Include xalloc.h
* src/filemode.c (mode_string): mode is unsigned int.
|
|
|
|
|
|
* doc/cpio.texi: Prominently mention, that --absolute-file-names is
the default.
* doc/cpio.1: Likewise.
|
|
|
|
|
|
* doc/Makefile.am: Change 'manual' goal.
* doc/gendocs.sh: New file.
* doc/gendocs_template: ps output is not built.
|
|
* src/util.c (inode_val): New member trans_inode
(find_inode_val): New function.
(find_inode_file): Rewrite using the above.
(add_inode): Initialize the trans_inode member
depending on the value of renumber_inodes_option.
(get_inode_and_dev): New function.
(stat_to_cpio): Use get_inode_and_dev.
(arf_stores_inode_p): New function.
* src/extern.h (renumber_inodes_option)
(ignore_devno_option): New externs.
* src/global.c (renumber_inodes_option)
(ignore_devno_option): New variables.
* src/main.c: Add new options.
* NEWS: Document changes.
* doc/cpio.1: Document new options.
* doc/cpio.texi: Likewise.
|
|
|
|
The IDs supplied with the -R option are treated as numeric (without
looking them up in the system database), when prefixed with +. This
allows to force using numeric value if a user (group) with a numeric
name exists in the database.
Reported by Joshua Briefman <sirgatez@gmail.com>.
* src/userspec.c (parse_user_spec): Use + as an indicator of
a numeric UID/GID.
* doc/cpio.1: Document changes.
* doc/cpio.texi: Likewise.
|
|
* .gitignore: Update.
* NEWS: Update.
* doc/cpio.1: Rewrite.
* doc/cpio.texi: Major revamp.
* src/main.c (options): Fix sectioning of the help output.
(parse_opt):
* src/util.c: Use PAXEXIT_FAILURE to indicate an error.
|
|
* NEWS: Update.
* bootstrap (gnulib_extra_files): Remove "missing"
* configure.ac: Do not distribute shar archive.
Define CPIO_MT_COND
* doc/Makefile.am: Always install manpages (mt.1 and rmt.8 --
depending on whether the corresponding programs are built).
* doc/cpio.1: Update.
* doc/mt.1: Update.
* lib/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
* src/Makefile.am: Likewise.
* tests/Makefile.am: Likewise.
|
|
* configure.ac: Use gettext 0.18
* doc/.gitignore: Add parse-datetime.texi.
* lib/Makefile.am (libpax_a_SOURCES): Add exit-status.c
* src/copyin.c (read_pattern_file): Use open_fatal if opening
pattern file failed.
* src/util.c (set_file_times): Use fdutimens.
|
|
* src/copyin.c (process_copy_in): Call change_dir.
* src/copyout.c (process_copy_out): Likewise.
* src/copypass.c (process_copy_pass): Likewise.
* src/extern.h (change_directory_option): New extern.
(change_dir): New proto.
* src/global.c (change_directory_option): New global.
* src/main.c (options): New option --directory.
(parse_opt): Handle the --directory option.
* src/util.c (change_dir): New proto.
* doc/cpio.texi: Document the --directory option.
|
|
|
|
* doc/cpio.texi: Document format file size limits.
|
|
|
|
* THANKS: Update
* doc/cpio.texi: Fix a typo.
* src/extern.h (warn_if_file_changed): Fix type of the 2nd
argument.
* src/tar.c (write_out_tar_header): Stylistic change.
* src/util.c (copy_files_disk_to_disk): Fix types of automatic
variables.
(warn_if_file_changed): Fix type of the 2nd argument.
Patches supplied by Ladislav Michnovic.
|
|
|
|
|
|
|
|
|
|
|
|
line options.
Fix formatting in "Invoking `cpio'" section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|