This project is mirrored from git://git.sv.gnu.org/coreutils.git.
Pull mirroring failed .
Last successful update .
Last successful update .
- 15 Mar, 2021 3 commits
-
-
Pádraig Brady authored
This behavior was introduced in commit FILEUTILS-4_0_44-4-g519b707b. * src/cksum.c (cksum_slice8): Only report the overflow, and continue. * src/cksum_pclmul.c (cksum_pclmul): Likewise.
-
Pádraig Brady authored
* src/cksum.c: (main): Use getopt_long to parse options, and handle the new --debug option. (pclmul_supported): Diagnose various failures and attempts. * NEWS: Mention the new option.
-
Kristoffer Brånemyr authored
Use cpuid to detect CPU support for hardware instruction. Fall back to slice by 8 algorithm if not supported. A 500MiB file improves from 1.40s to 0.67s on an i3-2310M * configure.ac [USE_PCLMUL_CRC32]: A new conditional, set when __get_cpuid() and clmul compiler intrinsics are supported. * src/cksum.c (pclmul_supported): A new function using __get_cpuid() to determine if pclmul instructions are supported. (cksum): A new function refactored from cksum_slice8(), which calls pclmul_supported() and then cksum_slice8() or cksum_pclmul() as appropriate. * src/cksum.h: Export the crctab array for use in the new module. * src/cksum_pclmul.c: A new module to implement using pclmul intrinsics. * po/POTFILES.in: Reference the new cksum_pclmul module. * src/local.mk: Likewise. Note we build it as a separate library so that it can be portably built with separate -mavx etc. flags. * tests/misc/cksum.sh: Add new test modes for pertinent buffer sizes.
-
- 14 Mar, 2021 1 commit
-
-
Pádraig Brady authored
build-aux/gen-single-binary.sh (override_single): A new function to refactor the existing mappings for dir, vdir, and arch. This function now also sets the DEPENDENCIES variable so that these dependencies can be maintained later in the script, where we now propagate the automake generated $(src_$cmd_DEPENDENCIES) to our equivalent src_libsinglebin_$cmd_a_DEPENDENCIES. This will ensure that any required libs are built, which we require in a following change to cksum that builds part of it as a separate library.
-
- 19 Feb, 2021 1 commit
-
-
Pádraig Brady authored
GNU/Linux is unusual here in that rmdir("symlink/") returns ENOTDIR, whereas Solaris and FreeBSD at least, will follow the symlink and remove the target directory. We don't make the behavior on Linux kernels consistent, but at least clarify the confusing error message. * src/rmdir (main): Output a specific error message for the above case. (remove_parents): In the error message, don't assume intermediate paths are directories, as they could be symlinks. * tests/rmdir/symlink-errors.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the improvement.
-
- 18 Feb, 2021 1 commit
-
-
Kamil Dudka authored
Bug: https://bugzilla.redhat.com/1921427 * src/stat.c (human_fstype): Add case for the 'exfat' file system type. * NEWS: Mention the Improvement. Fixes https://bugs.gnu.org/46613
-
- 15 Feb, 2021 1 commit
-
-
Erik Auerswald authored
This regression was introduced in commit COREUTILS-6_8-58-g553d347d * src/pr.c (init_parameters): Process tabs for multiple columns. * tests/pr/pr-tests.pl: Add test cases. * NEWS: Mention the bug fix. Fixes https://bugs.gnu.org/46422
-
- 10 Feb, 2021 1 commit
-
-
Pádraig Brady authored
- \r\n is common a line end combination - catting such a file without options causes it to display normally - overwriting the first char with $, loses info * src/cat.c (cat): Convert \r preceeding a \n to ^M. * tests/misc/cat-E.sh: New test. * tests/local.mk: Reference new test. * tests/misc/cat-proc.sh: Fix typo. * doc/coreutils.texi (cat invocation): Mention the new behavior. * NEWS: Mention the improvement.
-
- 26 Jan, 2021 1 commit
-
-
Paul Eggert authored
Problem reported by Qiuhao Li. * NEWS: Mention this. * doc/coreutils.texi (String expressions): Document the correct behavior, which POSIX requires. * src/expr.c (docolon): Treat unmatched \(...\) as empty. * tests/misc/expr.pl: New test.
-
- 25 Jan, 2021 1 commit
-
-
Pádraig Brady authored
This functionality regressed with the adjustments in commit v8.25-4-g62e7af03 * src/split.c (bytes_chunk_extract): Account for already read data when seeking into the file. * tests/split/b-chunk.sh: Use the hidden ---io-blksize option, to test this functionality. * NEWS: Mention the bug fix. Fixes https://bugs.gnu.org/46048
-
- 19 Jan, 2021 1 commit
-
-
Paul Eggert authored
* doc/coreutils.texi (rmdir invocation): Add note on how to remove empty subdirectories recursively.
-
- 15 Jan, 2021 1 commit
-
-
Paul Eggert authored
Problem reported by David McCall (Bug#45886). I introduced this problem when fixing Bug#14371. * NEWS: Mention the fix. * src/mkdir.c (struct mkdir_options): New members umask_ancestor, umask_self, replacing umask_value. (make_ancestor): Use them when temporarily adjusting umask. (main): Set them, and set the umask to umask_self instead of leaving it alone. * tests/mkdir/perm.sh (tests): Add test case for bug.
-
- 09 Jan, 2021 1 commit
-
-
Paul Eggert authored
* doc/coreutils.texi: Fix regexp cross-reference that had become out-of-date (Bug#45749). Also, fix some obsolete references to SunOS and to /usr/dict/words, and change “Linux” to “GNU/Linux” where appropriate. Unfortunately the pipeline example gets more complicated since /usr/share/dict/words is not sorted the way that ‘comm’ wants.
-
- 03 Jan, 2021 1 commit
-
-
Bernhard Voelker authored
None of the coreutils man pages - but the two above - are using bold setting for the references to other man pages in the SEE ALSO section. * man/cat.x (SEE ALSO): Remove '\fB...\fP' setting. * man/tac.x: Likewise, and add a reference to cat(1).
-
- 02 Jan, 2021 1 commit
-
-
Bernhard Voelker authored
This file is a copy from gnulib and therefore should not get changed by the yearly update. * .x-update-copyright: Add pattern for the above file. * doc/fdl.texi: Revert the previous change.
-
- 01 Jan, 2021 1 commit
-
-
Pádraig Brady authored
Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * tests/sample-test: Adjust to use the single most recent year.
-
- 28 Dec, 2020 2 commits
-
-
Pádraig Brady authored
* tests/misc/cksum.sh: Test basic operation. * tests/local.mk: Reference the new test.
-
Kristoffer Brånemyr authored
A 100MB file improves from 2.50s to 1.80s on a Sparc T5220 A 100MB file improves from 0.54s to 0.13s on an i3-2310M * bootstrap.conf: Explicitly depend on byteswap, since now used directly by coreutils. * src/cksum.c (cksum): Process in multiples of 8 bytes. (main): Adjust for generation of expanded crctab. * src/cksum.h: Split now larger crctab to separate header. * src/local.mk: Reference the new header. * NEWS: Mention the improvement.
-
- 25 Dec, 2020 1 commit
-
-
Paul Eggert authored
* src/make-prime-list.c (free): Undef, since Gnulib's free-posix module now defines this to rpl_free on some platforms.
-
- 18 Dec, 2020 2 commits
-
-
Pádraig Brady authored
* doc/coreutils.texi (numfmt invocation): s|./src/numfmt|numfmt|
-
Pádraig Brady authored
* doc/coreutils.texi (seq invocation): Mention "inf" is supported, and describe that it's handled specially to generate infinite whole integer sequences. Also mention that such infinite generation is supported for integer steps up to 200. (sleep invocation): Give `sleep inf` as an example to sleep forever. * src/seq.c: Add a comment on SEQ_FAST_STEP_LIMIT, to say it's reflected in the texinfo description.
-
- 15 Dec, 2020 4 commits
-
-
Paul Eggert authored
Chris Colohan wrote that the man page did not do enough to dispel a common misunderstanding that “contributed to one of the scariest outages Google has ever seen” (Bug#45258). * doc/coreutils.texi (mkdir invocation): * src/mkdir.c (usage): Document -m vs -p better.
-
KOBAYASHI Takashi authored
* src/nl.c (main): Enforce the POSIX specified behavior of assuming ':' is specified after a single character argument to -d. * tests/misc/nl.sh: Add a test case. * NEWS: Mention the bug fix.
-
Pádraig Brady authored
* doc/coreutils.texi (nl invocation): Mention the GNU extensions of allowing arbitrary length and empty delimiter strings. * src/nl.c (usage): Likewise. * tests/misc/nl.sh: Add test cases for the GNU extensions.
-
Pádraig Brady authored
* src/nl.c (main): Update the default delimiter characters when passed two characters with --section-delimiter. Avoid redundant copies for the body and footer delimiter strings, and instead, just offset into the header string. (check_section): Avoid redundant comparing of 2 bytes of memory for an empty delimiter.
-
- 12 Dec, 2020 1 commit
-
-
Paul Eggert authored
-
- 08 Dec, 2020 1 commit
-
-
Arman Absalan authored
* src/chroot.c (usage): Fix indentation of options. * src/comm.c: Likewise. * src/join.c: Likewise.
-
- 01 Dec, 2020 1 commit
-
-
Pádraig Brady authored
The format can be determined from --options or the locale, so it's useful to output the format string being used. * src/date.c (show_date): Show the output format along with the date being shown. * tests/misc/date-debug.sh: Adjust accordingly. Addresses https://bugs.gnu.org/44960
-
- 27 Nov, 2020 1 commit
-
-
Tim Gates authored
* src/expr.c: Fix typo in comment.
-
- 26 Nov, 2020 2 commits
-
-
Nishant Nayan authored
When removing a directory fails for some reason, and that directory is empty, the rm_fts code gets the return value of the excise call confused with the return value of its earlier call to prompt, causing fts_skip_tree to be called again and the next file that rm would otherwise have deleted to survive. * src/remove.c (rm_fts): Ensure we only skip a single fts entry, when processing empty dirs. I.e. only skip the entry having successfully removed it. * tests/rm/empty-immutable-skip.sh: New root-only test. * tests/local.mk: Add it. * NEWS: Mention the bug fix. Fixes https://bugs.gnu.org/44883
-
Pádraig Brady authored
* NEWS: Mention new remote file system types recognized since gnulib commit dd1fc46b.
-
- 23 Nov, 2020 5 commits
-
-
Pádraig Brady authored
This was needed before libselinux-2.3 (May 2014), but modern releases have the correct const declarations. * src/chcon.c: Remove se_const() wrapper. * src/cp.c: Likewise. * src/install.c: Likewise. * src/mkdir.c: Likewise. * src/mkfifo.c: Likewise. * src/mknod.c: Likewise. * src/system.h: Likewise. * gnulib: update to pick up const correctness fixes in selinux stubs.
-
Pádraig Brady authored
* po/POTFILES.in (src/selinux.c): Remove entry as this source doesn't contain any translatable strings anymore; avoids a sc_po_check failure.
-
Paul Eggert authored
At least, I *think* they are false alarms. An SELinux expert eye would be welcome. * src/install.c (setdefaultfilecon): If selabel_lookup fails due to either ENOTSUP or ENODATA, don’t diagnose the issue. Problem reported by Kamil Dudka in: https://lists.gnu.org/r/coreutils/2020-11/msg00050.html
-
Paul Eggert authored
* src/selinux.c: Don’t include die.h; no longer needed. (computecon, defaultcon, restorecon): Propagate errno. (defaultcon, restorecon): Don’t diagnose errors or exit, as that’s the caller’s responsibility.
-
Pádraig Brady authored
* src/selinux.c: selabel_lookup requires absolute paths (while only older matchpathcon before libselinux < 2.1.5 2011-0826 did). * po/POTFILES.in: Readd src/selinux.c since we now have a translatable error message.
-
- 22 Nov, 2020 4 commits
-
-
Bernhard Voelker authored
The previous commit introduced a couple of syntax-check failures. * .gitignore (/lib/se-label.h): Add entry to silence the sc_gitignore_missing check. Sort entries in C locale. * po/POTFILES.in (src/selinux.c): Remove entry as this source doesn't contain any translatable strings anymore; avoids a sc_po_check failure. * src/mv.c: Replace tabs by spaces to avoid complaints by sc_prohibit_tab_based_indentation.
-
Paul Eggert authored
-
Paul Eggert authored
Ubuntu 20.10 is using a newer version of libselinux that complains that matchpathcon is obsolete. Rewrite the code that it uses the recommended selabel_lookup instead. * m4/jm-macros.m4 (coreutils_MACROS): Do not check for matchpathcon_init_prefix, as it is no longer used. * src/copy.c (set_file_security_ctx): Omit process_local arg, as it is equivalent to !x->set_security_context. All callers changed. * src/copy.h (struct cp_options): set_security_context is now of type struct selabel_handle *, not bool. All uses changed. * src/cp.c, src/install.c, src/mkdir.c, src/mkfifo.c, src/mknod.c: * src/mv.c: Include selinux/label.h. (main): Use selabel_open for set_security context. * src/install.c (matchpathcon_init_prefix): Remove; now unused. (get_labeling_handle): New static function. (setdefaultfilecon, main): Use it. (setdefaultfilecon): Do something regardless of ENABLE_MATCHPATHCON, which seems to be a revenant macro. (setdefaultfilecon): Use selabel_lookup instead of the obsolescent matchpathcon. Report an error unless it fails due to ENOENT. * src/local.mk (src_ginstall_CPPFLAGS): Remove. * src/selinux.c: Include selinux/label.h Do not include die.h, error.h, canonicalize.h. (defaultcon, restorecon_private, restorecon): New arg HANDLE. All callers changed. Use selabel_lookup rather than matchpathcon. (restorecon_private, restorecon): Don’t lose track of errno. * src/selinux.c, src/selinux.h: (restorecon): Don’t call ‘error’; that’s the caller’s job. Use HAVE_SELINUX_LABEL_H, not HAVE_SELINUX_SELINUX_H, in case there is some weird system with the former but not the latter. * src/selinux.h (struct selinux_handle): Add forward decl.
-
Paul Eggert authored
* src/local.mk (src_ln_LDADD, src_mktemp_LDADD, src_tac_LDADD): Add $(LIB_CLOCK_GETTIME), since these use tempname which uses clock_gettime if getrandom fails. On platforms like Solaris 10, clock_gettime is not in the standard C library.
-