aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fortune
Commit message (Collapse)AuthorAgeFilesLines
* sys/*/conf/*, docs: fix links to handbookCeri Davies2024-01-101-2/+1
| | | | | | | | | | | | While here, fix all links to older en_US.ISO8859-1 documentation in the src/ tree. PR: 255026 Reported by: Michael Büker <freebsd@michael-bueker.de> Reviewed by: dbaio Differential Revision: https://reviews.freebsd.org/D30265 (cherry picked from commit c1a148873d6488f1dac1cfb207a5927cef89888e)
* fortune: update mailing list search urlChristos Margiolis2023-12-311-1/+1
| | | | | | | | | | Markmail no longer exists. Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43209 (cherry picked from commit 2b1c477d88e579585c6b3ba5f6ded70b9a05e3c3)
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit 05248206f720)
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-232-2/+0
| | | | | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b2c76c41be32)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-2315-15/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-233-6/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/ Similar commit in main: (cherry picked from commit 2a63c3be1582)
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit 42b388439bd3)
* fortune: Unindent a debug printf in get_fort().John Baldwin2022-11-111-4/+5
| | | | | | | | | | | The debug printf is intended to execute after the loop has ended to log the selected file. Reviewed by: imp, emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D36815 (cherry picked from commit db695788fc3d1eb3ff4cb258710f874953324208)
* freebsd-tips: Use a fetchable URL as exampleLi-Wen Hsu2021-07-271-2/+2
| | | | | | | | | | | | | MFC after: 3 days (cherry picked from commit ffe6afc4f0121f1909f2fa88694228f771dd3fcb) freebsd-tips: Fix the description of fetch(1) to match the command Reported by: jrtc27 MFC with: ffe6afc4f0121f1909f2fa88694228f771dd3fcb (cherry picked from commit 167897510919a76740eca0d79713abbd088660fe)
* fortune: add a tip about gstatAlan Somers2021-03-211-0/+6
| | | | (cherry picked from commit 60a632f047cdb6e5314711f593a4d3b1f1d8dde9)
* fortune(6): Add EXIT STATUS and HISTORY sectionsGordon Bergling2021-01-031-1/+15
| | | | | | Obtained from: OpenBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27941
* Drop superfluous "of" from the systat example.Benedict Reuschling2020-11-251-1/+1
| | | | Notes: svn path=/head/; revision=368014
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* fortune(6): Grammar fix for a hint on searching portsGordon Bergling2020-09-041-2/+2
| | | | | | | | | | PR: 249078 Submitted by: PauAmma <pauamma at gundo dot com> Reported by: PauAmma <pauamma at gundo dot com> MFC after: 3 days Notes: svn path=/head/; revision=365328
* fortune, strfile: Improve validation of command-line arguments.Mark Johnston2020-08-102-8/+19
| | | | | | | | | | | | - Avoid potential overflow when parsing a percentage. - Avoid truncation when copying file paths. PR: 246050 Submitted by: Akos Somfai <akos.somfai@gmail.com> (original) MFC after: 1 week Notes: svn path=/head/; revision=364083
* Revert r362466Baptiste Daroussin2020-06-221-1/+1
| | | | | | | | | Such change should not have happen without prior discussion and review. With hat: transitioning core Notes: svn path=/head/; revision=362488
* Improve wording to be more precise and clear.Hans Petter Selasky2020-06-211-1/+1
| | | | | | | | | | | | No functional change intended. s/Master Boot/Main Boot/ (also called MBR) MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=362466
* fortune: remove warning about potentially offensive fortunesEd Maste2020-05-281-7/+0
| | | | | | | | | | | They were removed long ago. PR: 246736 Submitted by: Ruby Lazuli Lord MFC after: 3 days Notes: svn path=/head/; revision=361596
* A few corrections and clarifications to r343406.Benedict Reuschling2019-01-281-10/+17
| | | | | | | | | | | | | | | | | | | | | - Use "in" instead of "on" when referring to directory and UFS partition. - Switch from hw.physmem to hw.realmem and add a description to distinguish the two. - Explain why the "df" command is having trouble displaying ZFS sizes correctly. Add a bit more descriptive text to help why the output of "zfs list -o space" should be used. - Switch to vmstat instead of iostat display for systat(1) as it shows more information on one screen. Describe what is displayed based on the text of the man page. Change the list of the other values accordingly. - Sort the flags to "zfs destroy" alphabetically. Reviewed by: rgrimes Approved by: rgrimes MFC after: 8 days Differential Revision: https://reviews.freebsd.org/D18993 Notes: svn path=/head/; revision=343532
* Add ZFS usage tips to freebsd-tips.Benedict Reuschling2019-01-241-4/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a bunch of examples on how to use ZFS features like: - listing available space, - setting and displaying a userquota, - displaying pool I/O statistics and pool history, - displaying the compression ratio for a dataset, - various list options (sorting, removing headers), - performing a dry-run of a snapshot delete, - removing a range of snapshots, - setting a custom property, - preventing removal of a snapshot with ZFS holds, - permission sets for zfs send/receive. Additionally, clarify the existing examples a bit when it comes to displaying space by mentioning UFS explicitly. Other examples include displaying I/O in top(1), querying sysctl(8) for active CPUs and available RAM. Mention systat(1) and its options, too. While here, reformat the example to upload a dmesg(8) a bit to wrap properly. Thanks to Allan Jude for his help with some of the ZFS examples. Reviewed by: dru,allanjude Approved by: allanjude (earlier version) MFC after: 3 days Relnotes: yes (ZFS examples in freebsd-tips) Differential Revision: https://reviews.freebsd.org/D18541 Notes: svn path=/head/; revision=343406
* Add a fortune describing how to upload a machine's dmesg information to theBenedict Reuschling2018-11-191-0/+6
| | | | | | | | | | | | | | | | | | | NYCBUG database. We want to encourage our users to upload their dmesgs so that the project can get a better insight into what kind of hardware is run on. This helps in making data-driven decisions about i.e., platform and driver support. Note that dmesgs may contain sensitive information like hardware serial numbers, hence uploading them without review is discouraged. Reviewed by: brooks, imp, allanjude Approved by: allanjude MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D17705 Notes: svn path=/head/; revision=340649
* fortune(6): Fix gcc80 -Wbool-operation warnings.Pedro F. Giffuni2018-01-271-9/+9
| | | | | | | Hinted by: Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) Notes: svn path=/head/; revision=328486
* Remove all fortune datfiles except freebsd-tips.Benno Rice2017-11-1413-74205/+1
| | | | | | | | | | | | | | | | | Humour is a funny thing. What is funny to one person is not funny to all people. What is insightful to one person is similarly not universal. The fortune datfiles have been around a long time and have undoubtedly amused people but it's time to acknowledge their subjective, and in some cases at least potentially offensive, nature and stop distributing them with the imprimatur of the FreeBSD project. If anyone wishes to distribute these via other mechanisms they are welcome to check them out of history and do so. MFC after: 2 days Notes: svn path=/head/; revision=325828
* Remove fortune quotes attributed to or providing admiration of Adolf HitlerMark Felder2017-11-131-79/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=325781
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-313-3/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* The !! trick does not apply to all shellsEitan Adler2017-10-291-1/+1
| | | | | | | Requested by: emaste Notes: svn path=/head/; revision=325105
* Update URLs in usr.binEitan Adler2017-10-291-1/+1
| | | | | | | | | - http -> https - contents have moved locations - removal of URL if I could not find new location Notes: svn path=/head/; revision=325095
* Modernize freebsd-tips a bitEitan Adler2017-10-291-14/+2
| | | | | | | | | | - Prefer UTF-8 over ISO-8859-1 - Remove some references to printing man pages - Combine duplicate '!!' tips - 'rehash' is no longer needed Notes: svn path=/head/; revision=325092
* Prefer using https over httpEitan Adler2017-10-291-3/+3
| | | | Notes: svn path=/head/; revision=325091
* strcpy => strlcpy, strcat => strlcatAlan Somers2017-04-041-2/+2
| | | | | | | | | | | | Reported by: Coverity CID: 1006703 978863 1006745 1347163 Reviewed by: cem MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D10192 Notes: svn path=/head/; revision=316500
* usr.bin/fortune: convert to OBJTOP/SRCTOP idiomsEnji Cooper2017-03-084-6/+9
| | | | | | | | | | | | | | | | | - Use OBJTOP/SRCTOP-relative paths when looking for include files and strfile. - Add FORTUNES_OBJ and FORTUNES_SRC to abbreviate usr.bin/fortune pathing. This is being done to simplify make output/idioms. MFC after: 1 week Reviewed by: bdrewery Sponsored by: Dell EMC Isilon Differential Revision: D9916 Notes: svn path=/head/; revision=314893
* Don't rely on dependency in Makefile.inc1 for strfile; make datfiles depend ↵Enji Cooper2017-03-071-1/+7
| | | | | | | | | | | | | | | | | on strfile In most cases strfile is built as part of build-tools, but in the event that someone cd'ed to the directory, tried to build from scratch, and had MK_GAMES=no previously, the build would fail in .../datfiles , trying to find strfile . Mark this directory tree "SUBDIR_PARALLEL" safe to help facilitate this, instead of shuffling around the SUBDIR entries (all of the other Makefiles will build standalone). MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314831
* spelling fixAlfred Perlstein2017-02-261-1/+1
| | | | | | | Submitted by: adamw Notes: svn path=/head/; revision=314289
* More FreeBSD tips for fortune(6)Alfred Perlstein2017-02-261-16/+120
| | | | | | | | Submitted by: lme PR: 192373 Notes: svn path=/head/; revision=314288
* Remove obsolete path from fortune(6). This was inadvertantly left overColin Percival2017-01-111-1/+0
| | | | | | | | | | | | when fortune and other games moved from /usr/games to /usr/bin; I am removing rather than correcting it since we normally do not mention in the FILES section the paths to programs in /usr/bin/. PR: 215962 Reported by: Andras Farkas Notes: svn path=/head/; revision=311945
* Fix sorting after r308293, using the ../tools/do_sort script.Eric van Gyzen2016-11-051-3/+3
| | | | | | | | | Is this a pointy-hat offense? Reported by: jhb Notes: svn path=/head/; revision=308342
* Fix grammar in a fortune.Eric van Gyzen2016-11-041-1/+1
| | | | Notes: svn path=/head/; revision=308293
* Avoid buffer overflow when copying the input file name and appending .dat.Don Lewis2016-05-261-3/+9
| | | | | | | | | | | Check the return value from fread() to be sure that it was successful. Reported by: Coverity CID: 1006709, 1009452 MFC after: 1 week Notes: svn path=/head/; revision=300705
* Use print as a function for Python 3 [PEP 3105]Craig Rodrigues2015-11-191-1/+1
| | | | | | | | | | | Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/ Notes: svn path=/head/; revision=291041
* Remove support of ancient (pre-8.0R, 800041) FreeBSD releases.Xin LI2015-10-071-8/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=288970
* Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-10-0239-0/+77770
(or what's left of it, at least) into src/usr.bin. This change will not be MFCed. Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015 Notes: svn path=/head/; revision=288485