aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-09-20doc: warn about tabs command (bug#57946)Paul Eggert1-0/+9
2022-09-18all: prefer HTTPS to HTTPStefan Kangas10-11/+11
* README-hacking: * README-prereq: * THANKS.in: * doc/sort-version.texi (Other version/natural sort implementations): * gl/lib/rand-isaac.c: * gl/tests/test-rand-isaac.c: * src/operand2sig.c (operand2sig): * src/remove.c (nonexistent_file_errno): * tests/misc/env-signal-handler.sh: * tests/misc/sort-debug-warn.sh (LC_ALL): Prefer HTTPS to HTTP. Addresses https://bugs.gnu.org/56512 Copyright-paperwork-exempt: yes
2022-09-17kill: port to picky-conversion hostsPaul Eggert1-2/+3
* src/kill.c (send_signals): Don’t rely on conversion overflow being silent.
2022-09-15maint: fix bootstrap module lists for alignofPaul Eggert1-1/+1
* bootstrap.conf (gnulib_modules): Remove alignof, which isn’t needed since coreutils source modules don’t include alignof.h. Add stdalign, since they depend on alignof working without stdalign.h.
2022-09-15maint: prefer static_assert to verifyPaul Eggert16-45/+49
* bootstrap.conf: Add assert-h. * gl/lib/randperm.c: Do not include verify.h. * gl/lib/randperm.c, src/basenc.c, src/dd.c, src/digest.c: * src/dircolors.c, src/expr.c, src/factor.c, src/ls.c, src/numfmt.c: * src/od.c, src/seq.c, src/shred.c, src/sort.c, src/stat.c: Prefer C23’s static_assert to nonstandard verify. * gl/modules/randperm (Depends-on): Add assert-h.
2022-09-15maint: assume C23 alignofPaul Eggert2-2/+0
* gl/lib/randread.c, src/stat.c (print_statfs): No need to include stdalign.h, now that alignof is a keyword in C23 and Gnulib arranges for this.
2022-09-15maint: don’t include config.h twicePaul Eggert3-6/+0
* gl/lib/fadvise.h, gl/lib/smack.h, src/blake2/blake2-impl.h: Do not include config.h from a .h file. config.h is supposed to be included once, at the start of compilation and before any other file.
2022-09-15build: update gnulib submodule to latestPaul Eggert1-0/+0
2022-09-13doc: shred: minor fixÁlvar Ibeas1-1/+1
* doc/coreutils.texi: Fix wording. Copyright-paperwork-exempt: yes
2022-09-12maint: adjust to Gnulib stdbool C23 changePaul Eggert10-10/+0
* gl/lib/mbsalign.c, gl/lib/randread.c, gl/lib/targetdir.h: * gl/lib/xdectoint.c, gl/lib/xfts.c, gl/lib/xfts.h: * src/blake2/b2sum.c, src/copy.h, src/die.h, src/system.h: Don’t include <stdbool.h>, since Gnulib now emulates C23.
2022-09-12build: update gnulib submodule to latestPaul Eggert1-0/+0
2022-09-11stty: give explicit error for unsupported asymmetric speedsPádraig Brady1-4/+30
* src/stty.c (check_speed): If difference input and output speeds are specified, then validate the system supports that, before interacting with the device.
2022-09-11stty: fix false warnings from [io]speed settingsPádraig Brady2-53/+39
* src/stty.c (eq_mode): A new function to compare equivalence of two modes. (main): Use eq_mode() rather than memcmp() to compare two modes. Also use stack variables rather than implicitly initialized static variables. Also remove all uses of the SPEED_WAS_SET hack since we now more robustly compare modes. * NEWS: Update the [io]speed fix entry. Reported at https://bugs.debian.org/1019468
2022-09-02maint: add lib/gmp.h to .gitignorePádraig Brady1-0/+1
* .gitignore: Add generated file. Tested with: ./configure --without-libgmp && make && git status
2022-08-31stty: add an undocumented ---debug option for more infoPádraig Brady1-9/+27
* src/stty.c (main): Move internal TESTING code that showed the new and old mode, upon failure to apply the new mode, to being runtime controlled with the ---debug option. Also augment the display to show which items were not set as expected.
2022-08-31doc: stty: clarify that [-]drain is treated as an optionPádraig Brady1-0/+2
* doc/coreutils.texi (stty invocation): Say that "drain" is treated as an option, rather than a line setting, and so option processing rules apply to it. Reported in https://bugs.debian.org/1018803
2022-08-31stty: validate ispeed and ospeed argumentsPádraig Brady3-4/+33
* src/stty.c (apply_settings): Validate [io]speed arguments against the internal accepted set. (set_speed): Check the cfset[io]speed() return value so that we validate against the system supported set. * tests/misc/stty-invalid.sh: Add a test case. * NEWS: Mention the bug fix. Reported in https://bugs.debian.org/1018790
2022-08-29maint: be defensive in avoiding gnulib's poll modulePádraig Brady1-0/+7
* src/tail.c (check_output_alive): Add a guard that would trigger on most platforms, to detect if we're using the gnulib poll module. That's currently problematic in the way it emulates poll() using select() and would cause issues on macOS and AIX at least as poll() is replaced there.
2022-08-29tail: use poll() on macOSPádraig Brady1-5/+6
* src/tail.c (check_output_alive): poll() is the most commonly used interface, so use this on macOS also to minimize divergence.
2022-08-27tests: runcon: fix new test to skip on non SELinux systemsPádraig Brady1-1/+3
* tests/misc/runcon-compute.sh: Use our new internal error 125 status to detect SELinux errors, and skip in this case.
2022-08-27doc: NEWS: document recent comm fix, and runcon changePádraig Brady1-0/+10
* NEWS: Mention comm bug fix, and runcon change in behavior.
2022-08-27tests: fix tests after recent runcon changePádraig Brady2-1/+2
Following commit v9.1-49-gea3ee6df2 * tests/misc/invalid-opt.pl: Map runcon failure status to 125. * tests/misc/usage_vs_getopt.sh: Likewise.
2022-08-27comm: fix NUL --output-delimiter with --totalPádraig Brady3-6/+21
* src/comm.c (compare_files): Handle the single character --output-delimeter case separately so that NUL is appropriately handled. * doc/coreutils.texi (comm invocation): Fix the description of --output-delimiter to say an empty delimeter is treated as a NUL separator, rather than being disallowed. * tests/misc/comm.pl: Add a test case. Reported at https://bugs.debian.org/1014008
2022-08-27maint: remove FIXME comment from timeout.cPádraig Brady1-1/+1
* src/timeout.c: We shouldn't hardcode `sh -c` as users can specify that if needed, so remove the comment.
2022-08-27runcon: distinguish runcon specific errors in exit statusPádraig Brady3-21/+24
* src/runcon.c: Use EXIT_CANCELED (125) instead of EXIT_FAILURE (1), so that errors specific to runcon can be distinguished, from those of the invoked program. * doc/coreutils.texi (runcon invocation): Fix the Exit status description to say we return 125 (not 127) for internal errors. * tests/misc/runcon-no-reorder.sh: Add a test case.
2022-08-13doc: README: split out ancillary informationPádraig Brady4-120/+130
The README was becoming too long and contained quite a bit of info only pertaining to rarely used systems, so... * README: Split out install specific info to README-install. Also remove a few stale lines, and reorder a few items. * README-install: A new file split from README. * Makefile.am [EXTRA_DIST]: Explicitly reference new README-install file for distribution, since automake only auto adds README. * TODO: Reference the HPUX info now in README-install.
2022-08-13ls: support explicit --time=modification selectionPádraig Brady4-2/+19
* src/ls.c [time_args]: Add support for explicit 'mtime' or 'modification' arguments to --time. * tests/misc/ls-time.sh: Add explicit --time=mtime usage. * doc/coreutils.texi (ls invocation): Describe --time=mtime. * NEWS: Mention the new feature.
2022-08-12doc: ls: clarify description of timestampsPádraig Brady2-3/+4
* src/ls.c (usage): Don't mention "modification" in the description of ctime (-c), as it's confusing with mtime. Mention "metadata" when discussing "change" time to disambiguate from data change time. * doc/coreutils.texi (ls invocation): State that --time=creation falls back to using mtime where not available.
2022-08-01doc: cp: fix --reflink=when typo in texinfoPierre Marsais1-1/+1
This behaviour is correctly documented when doing `cp --help`. There is no `--reflink=when` option. * doc/coreutils.texi (cp invocation): Fix document stating that `--reflink` is equivalent to `--reflink=always`.
2022-08-01doc: uniq: clarify -f operationPádraig Brady1-3/+4
* doc/coreutils.texi (uniq invocation): State that leading blanks are part of the field, and also that -f is one based.
2022-07-30doc: reference fmt(1) from fold(1)Pádraig Brady1-0/+2
* man/fold.x: fold and fmt have overlapping functionality, so reference fmt(1) from the lower level fold(1) utility.
2022-07-27touch: fix aliasing bugPaul Eggert1-13/+11
Problem reported by Tim Lange in: https://lists.gnu.org/r/coreutils/2022-07/msg00008.html * src/touch.c (date_relative): Rename from get_reldate, and use a functional style to fix the aliasing bug.
2022-07-26doc: env: clarify that empty signal args are ignoredPádraig Brady2-8/+10
It's useful to treat empty and missing arguments differently. Missing means all signals, while empty means no signals and so is a no-op. It's useful to treat empty arguments like this, so that dynamically specified arguments like the following are supported env --ignore-signals "$SIGS_TO_IGNORE" Note `env --ignore-signals=` is treated as an empty argument. * doc/coreutils.texi (env invocation): Empty args are treated differently to missing arguments, so call that out explicitly. * src/env.c (usage): Likewise. Addresses https://bugs.debian.org/1016049
2022-07-24doc: date: clarify which options are mutually exclusivePádraig Brady2-0/+9
* src/date.c (usage): Specify that --date, --file, --reference, and --resolution are mutually exclusive. This is also useful documentation to group similar options. * doc/coreutils.texi (Options for date): Likewise. Addresses https://bugs.gnu.org/55401
2022-07-24date: --debug: diagnose discarded -d or -s optionsPádraig Brady3-0/+27
* src/date.c: (main): Track and diagnose whether any -d or -s options are dropped, as users may think multiple options are supported, given they can be relative. * tests/misc/date-debug.sh: Add a test case. * NEWS: Mention the improvement.
2022-07-24runcon: ensure --compute runs the file it inspectsPádraig Brady4-1/+34
* src/runcon.c (main): With -c avoid searching the path to ensure the file specified to --compute is executed. * tests/misc/runcon-compute.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the bug fix. Reported in https://bugs.debian.org/1013924
2022-07-24doc: tr: clarify that -t is ignored unless translatingPádraig Brady1-1/+1
* src/tr.c (usage): Don't say that -t is disallowed unless translating. Reported in https://bugs.debian.org/1012447
2022-07-23rm: don’t assume st_size is nonnegativePaul Eggert1-10/+19
* src/remove.c: Include stat-time.h. (cache_fstatat, cache_stat_init): Use negative st->st_atim.tv_sec to determine whether the stat is cached, not negative st->st_size. On non-POSIX platforms that lack st_atim.tv_sec, don’t bother to cache.
2022-07-22stat: -c %s now prints unsignedPaul Eggert2-1/+11
* src/stat.c (unsigned_file_size): New static function, copied from src/ls.c. (print_stat): %s prints an unsigned value now (Bug#56710).
2022-07-06dd: doc improvement (Bug#54586)Paul Eggert1-2/+11
* doc/coreutils.texi (dd invocation): Explain fdatasync and fsync better.
2022-07-06cp: don’t remove nonempty cloned destPaul Eggert2-2/+13
This follows up on comments by Pádraig Brady (bug#56391). * src/copy.c (copy_reg): When --reflink=always removes a file due to an FICLONE failure, do not remove a nonempty file.
2022-07-05cp: don’t create empty file if cannot clonePaul Eggert1-0/+3
* src/copy.c (copy_reg): With --reflink=always, if FICLONE fails on a file we just created, clean up by removing the file (Bug#56391).
2022-07-04maint: fix comment typoIvan Radić1-1/+1
* src/uniq.c: s/preceges/precedes/
2022-06-24shuf: better diagnostic for ‘shuf -i -10-10’Paul Eggert1-18/+23
* src/shuf.c: Do not include xdectoint.h. (main): Improve diagnostic for ‘shuf -i -10-10’. Without this patch, the diagnostic was “shuf: invalid input range: ‘’” which is not helpful. Now it is “shuf: invalid input range: ‘-10-10’”.
2022-06-23cp: avoid -Wmaybe-uninitialized warning from GCC13Jim Meyering1-1/+6
* src/copy.c (infer_scantype): Always set scan_inference.ext_start, to make the code match the comment.
2022-06-23maint: remove unnecessary inclusion of hash.hJim Meyering1-1/+0
* src/cut.c: Don't include hash.h. The implementation was changed not to need that in v8.21-43-g3e466ad05.
2022-06-20maint: prefer POSIX-compatible EREsPaul Eggert2-8/+12
* cfg.mk (begword, endword): New macros. (sc_prohibit_stat_macro_address, sc_prohibit_fail_0) (sc_prohibit_short_facl_mode_spec, sc_require_stdio_safer) (sc_prohibit_sleep, sc_prohibit_framework_failure) (sc_marked_devdiagnostics): * build-aux/gen-single-binary.sh: Prefer POSIX-compatible EREs to GNU extensions like \w and \<.
2022-06-11cp: fix ‘cp -rx / /mnt’Paul Eggert2-27/+26
Problem reported by pkoraou@gmail.com (Bug#55910). * src/copy.c (copy_internal): Treat a relative destination name "" as if it were "." for the purpose of directory-relative syscalls like fstatat that might might refer to the destination directory.
2022-06-03maint: avoid \] in REsPaul Eggert3-6/+6
* cfg.mk (sc_dd_max_sym_length, sc_prohibit_man_see_also_period): Do not rely on undefined interpretation of \] in regular expressions.
2022-06-03build: update gnulib submodule to latestPaul Eggert5-6/+13
* bootstrap: Copy from latest Gnulib. * tests/misc/ls-misc.pl (v_files): Adjust to new Gnulib behavior.