aboutsummaryrefslogtreecommitdiff
path: root/src/global.c
AgeCommit message (Collapse)AuthorFiles
2024-01-14Upgrade copyright yearsSergey Poznyakoff1
2023-04-28Fix appending to archives bigger than 2GSergey Poznyakoff1
* src/extern.h (last_header_start): Change type to off_t. * src/global.c: Likewise. * src/util.c (prepare_append): Use off_t for file offsets.
2023-04-28New option --ignore-dirnlinkSergey Poznyakoff1
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.
2023-01-22Update copyright yearsSergey Poznyakoff1
2022-01-02Update copyright yearsSergey Poznyakoff1
2021-01-06Update copyright yearsSergey Poznyakoff1
2020-02-08Update copyright yearsSergey Poznyakoff1
2020-01-20Minor fixSergey Poznyakoff1
* src/global.c: Remove superfluous declaration of program_name
2017-01-02Update copyright yearsSergey Poznyakoff1
2015-09-12Update docs, use gettext 0.19.6Sergey Poznyakoff1
2014-12-01New options to create device and inode-independent archives.Sergey Poznyakoff1
* 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.
2014-01-30Update copyright years.Sergey Poznyakoff1
2012-02-20Always use 32 bit CRCSergey Poznyakoff1
* src/cpiohdr.h (cpio_file_stat) <c_chksum>: Change type to uint32_t. * src/extern.h (crc): Change type to uint32_t. * src/global.c: Likewise. * src/copyout.c (read_for_checksum): Return uint32_t. * src/copyin.c: Fix printf formats.
2010-07-22Provide a tar-like --directory (-D) option.Sergey Poznyakoff1
* 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.
2010-02-11Update copyright years.Sergey Poznyakoff1
2009-07-31Fix mt and make sure it is always build during distcheck.Sergey Poznyakoff1
Minor fixes in cpio. * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable. Ensure that distcheck builds mt. * bootstrap: Patch Makefile.in to honor AM_DISTCHECK_CONFIGURE_FLAGS. * gnulib.modules: add argp-version-etc and progname. * src/Makefile.am: Remove useless dependency. * src/copyin.c (long_format): Fix printf arguments. * src/copyout.c (read_for_checksum): Return unsigned long. (process_copy_out): Remove unused variable. * src/extern.h (crc): Change type to unsigned long. (program_name): Remove. * src/global.c: Likewise. * src/main.c: Include argp-version-etc.h and progname.h (argp_program_version): Remove. (program_authors): New global. (options): Remove the 'Informative options' group. These are handled automatically by argp. (parse_opt): Likewise. (licence): Remove. This info is output by --version. (process_args): Remove useless test. (main): Use set_program_name and argp_version_setup. * src/mt.c: Remove superfluous includes. Include argp-version-etc.h and progname.h Use argp to parse arguments. Supply the fatal_exit function. * tests/version.at: Update for the new --version output. * THANKS: Add Peter Breitenlohner. * AUTHORS: Update Sergey's email.
2007-06-28(newdir_umask): New globalSergey Poznyakoff1
2007-06-28Use size_t for buffer sizes and off_t for total I/O bytes.Sergey Poznyakoff1
2007-06-27Relicense under GPLv3Sergey Poznyakoff1
2006-09-27Update copyright yearSergey Poznyakoff1
2005-10-28(crc): Change declarationSergey Poznyakoff1
2005-05-19Updated FSF postal mail address.Sergey Poznyakoff1
2005-01-11(zeros_512): RemovedSergey Poznyakoff1
2004-09-08Added new globals.Sergey Poznyakoff1
2004-09-06Switched to ANSI C (sigh)Sergey Poznyakoff1
2004-02-27Added to the repositorySergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.