summaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2025-04-08tests: adjust csplit VM limit for CheriBSDPádraig Brady1-1/+1
* tests/misc/csplit-heap.sh: More memory is required to avoid a false failure on CheriBSD with its heap accounting overhead. This is confirmed to still trigger with the original memory leak being tested.
2025-04-08ls: support capabilities with device 0,0Pádraig Brady1-2/+6
* src/ls.c (has_capability_cache): Don't assume a device major,minor of 0,0 never occurs.
2025-04-08ls: fix crash of "ls -Z ." on OpenBSD's /dev/wd0a diskBruno Haible1-1/+3
* src/ls.c (file_has_aclinfo_cache): Add new static variable 'unsupported_cached'. Don't assume that device 0 never occurs.
2025-04-07build: use _GL_ATTRIBUTE_NONSTRING attribute to avoid new warningsJim Meyering1-2/+2
Avoid warnings like this from GCC 15: src/basenc.c:1139:20: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (9 chars into 8 available) [-Werror=unterminated-string-initialization] * src/basenc.c (z85_encoding, do_decode): Mark two more variables as non-terminated.
2025-04-07maint: avoid syntax-check failures from recent commitPádraig Brady2-11/+14
* gl/lib/dtimespec-bound.h: Indent, Spellcheck. * gl/local.mk: Add new gl files.
2025-04-07doc: mention workaround for combining hex floats with suffixesPaul Eggert1-2/+2
* doc/coreutils.texi (hexDuration): Mention the p style exponent trick.
2025-04-07build: update gnulib submodule to latestPaul Eggert1-0/+0
2025-04-07timeout: don’t sleep less than requestedPaul Eggert8-32/+129
Also, change sleep and tail to not sleep less than requested. * bootstrap.conf (gnulib_modules): Add dtimespec-bound. * gl/lib/dtimespec-bound.c, gl/lib/dtimespec-bound.h: * gl/modules/dtimespec-bound: New files. * src/sleep.c, src/tail.c, src/timeout.c: Include dtimespec-bound.h. * src/sleep.c, src/tail.c: Don’t include xstrtod.h. * src/sleep.c (apply_suffix, main): * src/tail.c (parse_options): * src/timeout.c (apply_time_suffix): Don’t sleep less than the true number of seconds. * src/timeout.c: Don’t include ctype.h. (is_negative): Remove; no longer needed. (parse_duration): Use a slightly looser bound on the timeout, one that doesn’t need -lm on GNU/Linux. Clear errno before calling cl_strtod.
2025-04-06maint: silence a -Wunterminated-string-initialization warningJim Meyering1-1/+1
* src/basenc.c (base16_encode): Mark BASE16 as not NUL-terminated.
2025-04-06build: update gnulib submodule to latestPádraig Brady1-0/+0
2025-04-06timeout: remove dependence on libmPádraig Brady4-31/+11
This was seen to add about 100,000 ns to the startup time, on a 2.6 GHz i7-5600U with glibc 2.40. * .gitignore: Remove /lib/fenv.h. * bootstrap.conf: Remove fenv-rounding and signbit deps. * src/local.mk: Remove fenv lib dependency. * src/timeout.c (is_negative): A new helper function to be equivalent of signbit in the underflow case. (parse_duration): Remove the rounding up logic, as a nanosecond here or there has no significance.
2025-04-06doc: mention the edge case of hex durations with 'd' suffixPádraig Brady2-0/+8
* doc/coreutils.texi (sleep invocation): Mention that suffixes are best avoided with hex arguments. (timeout invocation): Likewise. * tests/misc/sleep.sh: Ensure 'd' is not interpreted as "day".
2025-04-05maint: adjustments to recent timeout changePádraig Brady3-4/+2
* .gitignore: Add /lib/fenv.h to ignore list. * tests/timeout/timeout-parameters.sh: Use a sleep length of 10s to be consistent with the pattern where we use this larger time when it does not slow down a test, but also provides protection against a hung test, and better avoidance of false failures due to races on very loaded systems. Also fix the setting of FAIL. * tests/timeout/timeout-large-parameters.sh: Remove duplicated test.
2025-04-05timeout: round timeouts upPaul Eggert4-7/+44
This handles timeouts like 16777216.000000001 correctly; formerly the subsecond part of that timeout was ignored. * bootstrap.conf (gnulib_modules): Add fenv-rounding, signbit. * src/local.mk (src_timeout_LDADD): Append $(FENV_ROUNDING_LIBM). * src/timeout.c: Include fenv.h, math.h. Don’t include xstrtod.h, as xstrtod’s checking now gets in the way. (parse_duration): Round up when calling cl_strtod. Check for -1e-1000. Don’t double-round 1e-9. * tests/timeout/timeout-parameters.sh: Test for -0.1, -1e-1000, 1e-1000.
2025-04-04maint: ensure that new "make syntax-check"-run sc_codespell passesCollin Funk5-4/+10
* cfg.mk (codespell_ignore_words_list): Ignore false-positives. (exclude_file_name_regexp--sc_codespell): Skip some file names. * doc/coreutils.texi (mktemp invocation): Use "alphanumeric" which is consistent with the rest of the documentation. * src/expand-common.c: Fix typo. * src/ls.c: Likewise. * tests/split/l-chunk-root.sh: Likewise.
2025-04-04timeout: ensure infinitesimal timeouts timeout quicklyPádraig Brady3-0/+11
* src/timeout.c (parse_duration): Clamp infinitesimal values to 1ns. * tests/timeout/timeout-large-parameters.sh: Add a test case. * NEWS: Mention the bug fix. Fixes https://bugs.gnu.org/77535
2025-04-04tests: fix false failure with multi-byte thousands separatorsPádraig Brady1-0/+3
* tests/sort/sort-h-thousands-sep.sh: sv_SE defaults to UTF-8 on macOS 18, so avoid the test for multi-byte separators. Fixes https://bugs.gnu.org/77509
2025-03-31ls: suppress ENOENT errors when reading ACL infoPádraig Brady1-2/+8
* src/ls.c (gobble_file): Indicating unknown ACL info with '?' suffices for the edge case of a file being removed while reading, or older cygwin when reading through dangling symlinks. Reported by Corinna Vinschen.
2025-03-30ls: print correct xattr error on all platformsPádraig Brady2-1/+5
* src/ls.c (gobble_file): Output errno, as u.err is not populated by file_has_aclinfo() on all platforms. * NEWS: Mention the bug fix.
2025-03-23mv: port test to OpenBSD 7.5Paul Eggert1-3/+12
Problem reported by Bruno Haible <https://bugs.gnu.org/75685>. * tests/mv/sticky-to-xpart.sh: Also allow OpenBSD behavior.
2025-03-22doc: id: be direct about valid options with -nrPádraig Brady1-1/+1
* src/id.c (usage): State what options are valid with -nr, rather than just stating the default format is invalid. Fixes https://bugs.gnu.org/77163
2025-03-22doc: id: make option combinations more searchablePádraig Brady1-2/+2
* src/id.c (usage): Add commas to make options more searchable. Don't add spaces since that would overflow 80 cols. Fixes https://bugs.gnu.org/77162
2025-03-21ls: fix crash on systems with SELinux but without xattr supportPádraig Brady2-2/+4
This was seen on termux on Android with ./configure --disable-xattr where listxattr() and getxattr() returned ENOTSUP. Then the valid security context obtained by file_has_aclinfo() was discounted, and problematically then freed multiple times. Reported at https://github.com/termux/termux-packages/issues/23752 * src/ls.c (file_has_aclinfo_cache): Only discount the returned acl info when all components are defaulted due to being unsupported.
2025-03-15dircolors: add vt220 as a color capable terminalPádraig Brady1-0/+1
This isn't strictly historically accurate but most practical these days, especially since systemd uses this as its default TERM type. See https://github.com/coreutils/coreutils/issues/96 Tested with: $ LS_COLORS= COLORTERM= TERM=vt220 src/ls --color $ COLORTERM= TERM=vt220 src/dircolors * src/dircolors.hin: Add vt220.
2025-03-10tests: dd: ensure posix_fadvise errors are handledPádraig Brady2-0/+57
* tests/dd/nocache_fail.sh: Add a test case for the recent fix.
2025-03-10dd: fix error detection with "nocache" flagFrédéric Yhuel2-2/+8
* NEWS: Mention the bug fix. * src/dd.c (invalidate_cache): Adjust to the unusual error propagation sematics of posix_fadvise().
2025-03-09build: update gnulib submodule to latestPaul Eggert1-0/+0
2025-03-09doc: mention logname improvement in NEWSPádraig Brady1-0/+6
* NEWS: Mention the improvement in gnulib commit 90840606. Addresses https://bugs.gnu.org/76876
2025-02-26build: fix LIBCRYPTO_SONAME value with config cacheGrisha Levit1-6/+6
* configure.ac (LIBCRYPTO_SONAME): Store library name in cache so we do not end up with an empty value for it when a cache file is used. The configure variable name is changed from utils_cv_dlopen_libcrypto to utils_cv_libcrypto_soname.
2025-02-24who: fix -m with guessed tty namesLukáš Zaoral3-1/+6
* who.c (scan_entries): Account for guessed tty names (e.g. 'sshd pts/1') from the readutmp module when using the systemd backend. * bootstrap.conf (gnulib_modules): Add str_endswith. * News: Mention the bug fix. Addresses https://bugzilla.redhat.com/2343998
2025-02-20build: update gnulib submodule to latestPádraig Brady2-6/+0
* gnulib: Update to 757345e8. * src/who.c: Adjust to new defines.
2025-02-20maint: fix sc_tight_scope failurePádraig Brady12-37/+37
This reverts commit 83fb600a21c6bad362b5739e7a9a9780639fa550.
2025-02-20maint: fix sc_preprocessor_indentation failurePádraig Brady1-3/+3
* src/cksum.h: Indent appropriately.
2025-02-19sort: improve -u brief docPaul Eggert1-3/+2
* src/sort.c (usage): Reword -u help (Bug#76290).
2025-02-18du: update debug option setupPaul Eggert1-11/+11
Current Gnulib arranges for fts debugging if GNULIB_FTS_DEBUG is defined, so key off that rather than off DU_DEBUG. * src/du.c (fts_debug): Remove decl, as Gnulib does this now. (FTS_CROSS_CHECK): Remove; all uses removed. (FTS_DEBUG) [!GNULIB_FTS_DEBUG]: Remove. (long_options) [GNULIB_FTS_DEBUG]: Add a ---debug option. (du_files): Call fts_cross_check only if fts_debug and GNULIB_FTS_DEBUG. (main): Set fts_debug if GNULIB_FTS_DEBUG, not DU_DEBUG.
2025-02-18maint: omit function defn externPaul Eggert12-37/+37
* src/chown-core.c, src/copy.c, src/cp-hash.c, src/csplit.c: * src/expand-common.c, src/find-mount-point.c, src/force-link.c: * src/group-list.c, src/iopoll.c, src/operand2sig.c: * src/show-date.c, src/wc_avx2.c: Omit unnecessary ‘extern ’ at the start of function defns. This is less wordy, makes it a bit easier to grep for issues such as the missing consistency checking in cksum.
2025-02-18cksum: check API betterPaul Eggert4-26/+8
* src/cksum_avx2.c, src/cksum_avx512.c, src/cksum_pclmul.c: * src/cksum_vmull.c: Include cksum.h instead of copying its decls/includes by hand. This is a better way to ensure consistency among defns and uses.
2025-02-18cksum: minor crctab generation cleanupsPaul Eggert2-33/+25
* src/cksum.c [CRCTAB]: Include only config.h and stdio.h, to simplify the crctab-generating code. [!CRCTAB]: Do not include stdint.h or stdio.h, as cksum.h does it now. (BIT, r, crc_remainder, main) [CRCTAB]: Use unsigned int, not uint_fast32_t or uint32_t, as this is good enough for GNU where unsigned int is guaranteed to be at least 32 bits, and this way we needn’t worry about mismatches between %08x formats and uint_fast32_t. (main) [CRCTAB]: Prefer more-local decls. Do not output unnecessary directives to include stdint.h or stdio.h. No need for ‘return EXIT_SUCCESS;’ nowadays. * src/crctab.c: Regenerate.
2025-02-18cksum: make cksum.h standalonePaul Eggert1-1/+20
* src/cksum.h: Include stdint.h, stdio.h so that this file can be included in any order, after config.h. Add a copyright notice.
2025-02-18build: update gnulib submodule to latestPaul Eggert1-0/+0
2025-02-17cksum: port to 32-bit uint_fast32_tPaul Eggert2-2/+8
* src/cksum_vmull.c (cksum_vmull): Don’t assume uint_fast32_t can hold 64 bits. Problem reported by Alyssa Ross (Bug#76360).
2025-02-17cksum: fix test for missingPaul Eggert1-1/+1
* tests/cksum/cksum.sh: Don’t output confusing diagnostic. Problem reported by Alyssa Ross (Bug#76360).
2025-02-15dircolors: recognize “jxl” (JPEG XL) filesMike Swanson1-0/+1
2025-02-14cat: fix plain ‘cat’ bugPaul Eggert2-14/+18
* src/cat.c (main): Do not fail with plain ‘cat’ where input and output are both /dev/tty, if the output happens to have O_APPEND set. Problem reported by lilydjwg <https://bugs.gnu.org/76255>. Also, don’t report an error if the seek position is at or after EOF, even if O_APPEND is set.
2025-02-14cat: omit unnecessary lseekPaul Eggert1-1/+2
* src/cat.c (main): Don’t bother to try lseek on a fifo or socket, as it will fail.
2025-02-14cat: port to platforms with shm, tmoPaul Eggert1-3/+11
* src/cat.c (main): Work even on platforms that have shared memory objects and typed memory objects, which means st_dev and st_ino do not work.
2025-02-05doc: remove extraneous new lines in some man pagesPádraig Brady1-1/+1
* local.mk: Add the --loose-indent option, which results in help2man avoiding extraneous new lines in expr.1, id.1, numfmt.1, shred.1, tail.1, and timeout.1. Fixes https://bugs.gnu.org/74107
2025-02-05doc: sync help2man to latest versionPádraig Brady1-16/+44
* man/help2man: sync changes to commit 8fe02612 The main change here is to Use \f(CR for monospace text when using groff in troff mode. Previously \f(CW was used, but that's not portable.
2025-02-05tests: du: avoid intermittent false failurePádraig Brady1-1/+2
* tests/du/long-sloop.sh: Avoid failure due to intermittent reception of FTS_DNR, seen on BTRFS at least.
2025-02-04build: update gnulib submodule to latestPaul Eggert1-0/+0