#
ad4f3bdf |
| 10-May-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
cat: Missed a couple.
MFC after: 3 days Sponsored by: Klara, Inc.
|
#
c6f9df70 |
| 10-May-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
cat: Check for lack of success rather than a specific failure.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D45149
|
Revision tags: release/13.3.0 |
|
#
05f530f4 |
| 15-Feb-2024 |
Ed Maste <emaste@FreeBSD.org> |
cat: fix cap_rights_init usage
Capability rights passed to cap_rights_* are not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights).
PR: 277
cat: fix cap_rights_init usage
Capability rights passed to cap_rights_* are not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights).
PR: 277057 Reported by: asomers, markj
show more ...
|
#
e043f372 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
#
0b8224d1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
#
90aea514 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
#
3c773cad |
| 19-Nov-2023 |
Martin Matuska <mm@FreeBSD.org> |
cat: fallback on EISDIR with copy_file_range(2)
The filesystem may support reading directories directly when security.bsd.allow_read_dir is set.
MFC after: 1 week PR: 275099
|
Revision tags: release/14.0.0 |
|
#
64c63277 |
| 28-Sep-2023 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: add CAP_SEEK capability
The copy_file_range might require that.
Reviewed by: emaste, theraven, kib, markj Differential Revision: https://reviews.freebsd.org/D41967
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
055f920e |
| 09-Jul-2023 |
Martin Matuska <mm@FreeBSD.org> |
cat: fallback on EBADF with copy_file_range(2)
When stdout is opened with O_APPEND, copy_file_range(2) fails with EBADF.
|
#
8113cc82 |
| 08-Jul-2023 |
Martin Matuska <mm@FreeBSD.org> |
cat: use copy_file_range(2) with fallback to previous behavior
This allows to use special filesystem features like server-side copying on NFS 4.2 or block cloning on OpenZFS 2.2.
Reviewed by: imp,
cat: use copy_file_range(2) with fallback to previous behavior
This allows to use special filesystem features like server-side copying on NFS 4.2 or block cloning on OpenZFS 2.2.
Reviewed by: imp, rmacklem Differential revision: https://reviews.freebsd.org/D40882
show more ...
|
#
38f57faa |
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
cat: ensure serrno is always set
Set serrno to errno before the loop begins for the edge case that res0 is immediately NULL.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pu
cat: ensure serrno is always set
Set serrno to errno before the loop begins for the edge case that res0 is immediately NULL.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/724
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
#
0614d739 |
| 20-Jan-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: style nits
Pointed out by: jhb
|
#
de57c3d8 |
| 16-Jan-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: style nits
|
#
6e8062c8 |
| 16-Jan-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: persistent errno
There is no guarantee that after close(2)/free the errno will remain persistent. The caller of the udom_open function depends on the errno for reporting errors.
Reviewed by: m
cat: persistent errno
There is no guarantee that after close(2)/free the errno will remain persistent. The caller of the udom_open function depends on the errno for reporting errors.
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D28185
show more ...
|
#
c664d8df |
| 15-Jan-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: Fix potential memory leak
This was introduced in aefe30c5437159a5399bdbc1974d6fbf40f2ba0f.
|
#
aefe30c5 |
| 15-Jan-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
cat: capsicumize it
Reviewed by: markj, arichardson Differential Revision: https://reviews.freebsd.org/D28083
|
#
ed845580 |
| 06-Jan-2021 |
Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> |
Fix all warnings emitted in `make kernel-toolchain`
With this change and D27598 make kernel-toolchain no longer emits any warnings for me.
Reviewed By: emaste Differential Revision: https://reviews
Fix all warnings emitted in `make kernel-toolchain`
With this change and D27598 make kernel-toolchain no longer emits any warnings for me.
Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27599
show more ...
|
Revision tags: release/12.2.0, release/11.4.0 |
|
#
a33ee411 |
| 16-Jan-2020 |
Alex Richardson <arichardson@FreeBSD.org> |
Allow building bin/cat on non-FreeBSD systems
`cat -l` is needed during the installworld phase and other system's cat don't support that flag. To avoid portability issues when compiling on Linux/mac
Allow building bin/cat on non-FreeBSD systems
`cat -l` is needed during the installworld phase and other system's cat don't support that flag. To avoid portability issues when compiling on Linux/macOS (such as the the direct access to &fp->_mbstate), we disable the entire multibyte support when building as a boostrap tool.
Reviewed By: brooks, emaste Differential Revision: https://reviews.freebsd.org/D13939
show more ...
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
c79126f2 |
| 12-Jan-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r327624 through r327885.
|
#
6d5343e3 |
| 07-Jan-2018 |
Xin LI <delphij@FreeBSD.org> |
stddef.h is not used by cat.c, remove the include.
|
#
4b49587c |
| 06-Jan-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r327341 through r327623.
|
#
ca23e64e |
| 06-Jan-2018 |
Warner Losh <imp@FreeBSD.org> |
Sanity check sysconf return value to ensure it's positive before we use it. Use proper cast to convert long to size_t (instead of blksize_t) to preclude sign extension issues.
CID: 1193754
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|