tail: Tweak follow_rename test caseAdd a brief sleep to give tail time to start following the file beforewe rename it.MFC after: 1 weekReviewed by: markjDifferential Revision: https://reviews.
tail: Tweak follow_rename test caseAdd a brief sleep to give tail time to start following the file beforewe rename it.MFC after: 1 weekReviewed by: markjDifferential Revision: https://reviews.freebsd.org/D52887
show more ...
tail: Fix -b, -c, -n optionsSwitching from strtoll() to expand_number() was improper at the time asit only accepted positive numbers. Now that it also accepts negativenumbers, the -b option is s
tail: Fix -b, -c, -n optionsSwitching from strtoll() to expand_number() was improper at the time asit only accepted positive numbers. Now that it also accepts negativenumbers, the -b option is still broken because the same commit thatswitched to expand_number() also dropped the multiplication by units.Fixes: 643ac419fafbReviewed by: delphijDifferential Revision: https://reviews.freebsd.org/D51757
tail -F: fix crashWhen show() detects an error and closes the file and follow() wants toclose it again, a NULL dereference occurs.PR: 280910MFC after: 1 week
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
tail: Do not trust st_size if it equals zero.PR: bin/276107MFC after: 1 week
tail(1): Fix a typo in a source code comment- s/recieved/received/MFC after: 3 days
tail: Clean up error messages.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D42842
tail: Fix heap overflow in -F case.The number of events we track can vary over time, but we only allocateenough space for the exact number of events we are tracking when wefirst begin, resulting
tail: Fix heap overflow in -F case.The number of events we track can vary over time, but we only allocateenough space for the exact number of events we are tracking when wefirst begin, resulting in a trivially reproducable heap overflow. Fixthis by allocating enough space for the greatest possible number ofevents (two per file) and clean up the code a bit.Also add a test case which triggers the aforementioned heap overflow,although we don't currently have a way to detect it.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: allanjude, markjDifferential Revision: https://reviews.freebsd.org/D42839
tail.1: Add an example for +n 1MFC after: 3 daysSponsored by: Klara, Inc.
tail.1: Lint with mandoc(1)MFC after: 3 daysSponsored by: Klara, Inc.
usr.bin: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.R
usr.bin: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank 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
Remove copyright strings ifdef'd outWe've ifdef'd out the copyright strings for some time now. Go ahead andremove the ifdefs. Plus whatever other detritis was left over from otherrecent removals.
Remove copyright strings ifdef'd outWe've ifdef'd out the copyright strings for some time now. Go ahead andremove the ifdefs. Plus whatever other detritis was left over from otherrecent removals. These copyright strings are present in the comments andare largely from CSRG's attempt at adding their copyright to everybinary file (which modern interpretations of the license doesn'trequire).Sponsored by: Netflix
usr.bin: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a pe
usr.bin: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl script.Sponsored by: Netflix
Remove $FreeBSD$: one-line nroff patternRemove /^\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: two-line .c patternRemove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
Mark usage function as __dead2 in programs where it does not returnIn most cases, usage does not return, so mark them as __dead2. For thecases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not returnIn most cases, usage does not return, so mark them as __dead2. For thecases where they do return, they have not been marked __dead2.Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/735
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
Update/fix Makefile.depend for userland
tail: Verify correct behavior when input does not end in a newline.Sponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D39116
tail: Retry kevent if the system call was interruptedkevent returns EINTR when I suspend / resume. This causes tail -fand tail -F to exit with interrupt system call. Ignore this errorand try keve
tail: Retry kevent if the system call was interruptedkevent returns EINTR when I suspend / resume. This causes tail -fand tail -F to exit with interrupt system call. Ignore this errorand try kevent again.Sponsored by: Netflix
tail: Fix misleading indentation in ARG() macro.Reviewed by: imp, emasteReported by: GCCDifferential Revision: https://reviews.freebsd.org/D36810
tail: Initialize the stat buffer used when input is stdinPR: 266284Reported by: Jenkins via delphijFixes: 7e11889959a6 ("tail: Fix -f with stdin")MFC after: 3 days
1234567