Age | Commit message (Collapse) | Author | Files |
|
|
|
|
|
|
|
This helps in avoiding the warning about implicit function declaration
which is elevated as error with newer compilers e.g. clang 16
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
* am/pack.m4: Don't use obsolete macros.
* configure.ac: Likewise.
Require autoconf 2.71
* paxutils: Upgrade.
* src/extern.h (STRINGIFY_BIGINT, UINTMAX_STRSIZE_BOUND): New definitions.
(parse_user_spec): Change signature.
* src/main.c: Update call to parse_user_spec.
* src/idcache.c: Include extern.h
* src/userspec.c: Likewise.
|
|
|
|
|
|
* 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
|
|
|
|
|
|
Previously the members of cpio_file_stat that hold device major and
minor numbers were signed (long). This caused issues when the device
number was cast to unsigned value (uintmax_t) during a call to
to_ascii or derived function. In particular, on *BSD systems minor
numbers are negative ints. When such numbers are passed to to_ascii,
the resulting unsigned representation does not fit into the target
field width. For details, see
https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00012.html
To fix this, the return types are autodetected by configure. The types
of the c_dev_maj, c_dev_min, c_rdev_maj, and c_rdev_min members of
struct cpio_file_stat are changed to unsigned versions of the
corresponding detected types. This ensures that the value returned from
major (or minor) will not undergo sign extension during assignment to the
struct member and can be correctly promoted to a wider unsigned data
type.
* am/ax_compile_check_rettype.m4: New macro AC_COMPILE_CHECK_RETTYPE
* configure.ac: Detect return types of major(3) and minor(3).
* src/cpiohdr.h (cpio_file_stat): Change types of c_dev_maj, c_dev_min,
c_rdev_maj, c_rdev_min.
|
|
* NEWS: Describe new version.
* configure.ac: version 2.13
* src/copyin.c: Fix strict aliasing violation.
* tests/CVE-2019-14866.at: New file.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Add new test,
|
|
|
|
* am/quoting.m4: New file.
* configure.ac: Set default quoting style.
* src/copyin.c (long_format): Use quotearg.
(print_name_with_quoting): Remove.
* src/extern.h (print_name_with_quoting): Remove proto.
|
|
In the default case, the build_mt flag is not set. This leads to an
error at configure time like:
./configure: line 26866: test: =: unary operator expected
Change to use the variable name autoconf creates for us and quote it
so we never get weird expansion errors.
|
|
|
|
|
|
* headers/Makefile.am: Remove.
* headers/fnmatch.h: Remove.
* Makefile.am: Update.
* configure.ac: Update.
|
|
* 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.
|
|
* configure.ac, NEWS: Raise version number.
|
|
* configure.ac: Raise version number to 2.10.91.
Require autotools 2.63/1.11.1.
Create shar archive.
Enable silent rules by default.
* Makefile.am (AUTOMAKE_OPTIONS): Remove.
* lib/Makefile.am (rmt-command.h): Silent rule.
* NEWS: Update.
|
|
|
|
|
|
|
|
* am/flushleft.m4, am/pack.m4: New files.
* Makefile.am (ACLOCAL_AMFLAGS): Add -I am.
* bootstrap: Fix arguments to aclocal.
* configure.ac: Call CPIO_PACKED_STRUCTS.
* src/cpiohdr.h: Ensure old_cpio_header,
old_ascii_header and new_ascii_header are packed.
|
|
|
|
|
|
* 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.
|
|
|
|
* NEWS, THANKS: Update.
* bootstrap: Create lib/system.c, m4/sysdep.m4, update lib/system.h.
* mingw.m4, sysdep.m4: New files.
* configure.ac: Raise version number to 2.9.90.
Call CPIO_SYSDEP. Remove the call to gl_USE_SYSTEM_EXTENSIONS.
(AC_CHECK_HEADERS): Add process.h sys/ioctl.h
* lib/Makefile.am (libcpio_a_SOURCES): Add system.c
* src/idcache.c: Include system.h
* src/userspec.c: Remove alloca stuff (already handled by
gnulib). Include alloca.h.
Remove useless declarations of get.* functions.
* src/util.c: Include sys/ioctl.h conditionally.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it is provided by paxutils.
|
|
|
|
Check for locale.h
|
|
|
|
|
|
|
|
Use AC_CONFIG_LINKS to provide for fnmatch.h and getopt.h on
the systems where these are missing
Check for argp and replace it if necessary.
|
|
|