1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00
Commit Graph

1430 Commits

Author SHA1 Message Date
tb
1d26f69e64 Emit a warning if all fortunes in the file are too short or too long
From Nir Lichtman
2024-10-21 06:39:03 +00:00
tb
99ed6402aa Plug leak of Fortbuf in find_matches()
From Nir Lichtman
2024-10-20 21:07:58 +00:00
tb
08948b0a81 Avoid use after free when retrying the -o file
This is horrible code and at least file leaks in various paths, but that's
for someone else to fix.

found by & ok jsg
2024-09-20 12:52:37 +00:00
deraadt
c547d0fc77 In our fight against the cosmos, in the chaos of the source tree, we
deleted the greek quiz.  Some people felt trauma, and called out our
hubris.  At my request, Carson Harding performed a metamorphosis of
the quiz -- kudos to him!  After playing, I consider it the acme of
quizzes.
ok jmc mglocker
2024-09-02 16:37:58 +00:00
deraadt
d7c59870ce In our fight against the cosmos, in the chaos of the source tree, we
deleted the greek quiz.  Some people felt trauma, and called out our
hubris.  At my request, Carson Harding performed a metamorphosis of
the quiz -- kudos to him!  After playing, I consider it the acme of
quizzes.
ok jmc mglocker
2024-09-02 16:34:44 +00:00
jmc
15f10d2b5d update the header; ok and error corrected by jsg 2024-08-31 13:41:13 +00:00
op
26f8aa5434 use the right FILE to parse the config, not stdin
I typoed the file argument to getline() in rev 1.14 when converting
fgetln remnants to getline back in aug 2022.  guess not many people
are hosting hunt servers.
2024-08-28 15:51:01 +00:00
jmc
28472285aa fortune files are no longer being rot13d; 2024-08-26 20:12:33 +00:00
jmc
18d14a277f - remove the "real" dance. there is no longer a need for it.
- do not install the offensive files rotated 13 chars, as suggested by deraadt.
it hardly makes sense, and only one of the "potentially offensive" files
was being treated this way anyway

- simplify the makefile to catch up with all this

- update NOTES to catch up with all this

- the notes in README pertaining to not installing the offensive files is no
longer relevant, so remove it, as suggested by millert
2024-08-26 20:10:53 +00:00
mglocker
cfd7bd0de1 Make clear it's about *ship* parts when you list the quiz(6) subjects.
ok jmc@
2024-08-24 07:04:29 +00:00
jsg
ea4684a6df spelling 2024-08-24 06:45:26 +00:00
jmc
edad63f2e3 the index is alphabetically sorted; 2024-08-24 05:35:28 +00:00
deraadt
a6105854a9 The greek quiz is so obscure that it is ridiculous -- noone can play
this.  Replace it with a new quiz about galley (ship) parts.  This
commit changes the *LAST UNMODIFIED ORIGINAL FILE* (meaning revision
1.1.1.1) from the original import that created OpenBSD on Oct 18,
1995.  With this commit, we have completed an amusing mission of
replacing the final parts of the original OpenBSD.

We have reached OpenBSD of Theseus.

ideas & assistance from mglocker, naval terminology help from jmc
2024-08-23 17:29:08 +00:00
mglocker
106a534746 Speed up script by using awk(1).
Discussed with deraadt@
2024-08-23 15:22:59 +00:00
deraadt
99d0e43d6d slight improvement to index file parsing; ok mlarkin 2024-08-23 14:50:16 +00:00
deraadt
78ff30cd1d add rcsid markers so that we can visually see the flurry of commits in
this area
ok mlarkin
2024-08-23 04:26:11 +00:00
deraadt
3d01712554 add the dumbest #-comment parser for the Game_List parser, someone
else can improve this later.  My code is not substandard considering
what I saw.
2024-08-23 04:25:46 +00:00
deraadt
9919444fb4 add rcsid markers so that we can visually see the flurry of commits in
this area
ok mlarkin
2024-08-23 04:21:18 +00:00
tb
8793f83a48 fix spelling of sequence
ok mglocker
2024-08-23 04:19:40 +00:00
mlarkin
a713797954 atc(6): update ORD marker beacon information
ok deraadt@
2024-08-23 03:43:33 +00:00
deraadt
20459491ec probition is over. most people want want to laugh at lightly
offensive things.
suggested it is time by millert
2024-08-23 03:25:32 +00:00
deraadt
59f8131b37 must use sh to run the script, because /usr/src may be noexec 2024-08-23 02:46:09 +00:00
jsg
1e0c60bff8 sync manual section numbers 2024-08-22 10:00:16 +00:00
florian
3fe6b20f1f Fix answer.
2,$-1g/^/.,.1j does not combine every even-numbered line with the next
odd-numbered line. One correct way is 2,$-1g/^/.,+1j

Pointed out by ed1conf on mastodon.
2024-08-22 08:44:22 +00:00
florian
f4e38f014b Charles III succeeded Elizabeth II in the 21st century.
OK jmc, mlarkin
2024-08-22 05:40:09 +00:00
mlarkin
42e66afef6 spell(1) does not need to be told about 'woops' in this case
I guess someone added this word to spell.ok but it wasn't needed. woops.

ok deraadt
2024-08-22 04:59:19 +00:00
mglocker
55adff3dfc Generate areas datfile from /usr/share/misc/na.phone during make.
A deraadt/mglocker production
2024-08-22 04:34:19 +00:00
mglocker
54e324151f Add Tribonacci number sequence.
Proposed by Anisja Mayer (math. student from Basel).

ok deraadt@
2024-08-22 04:29:40 +00:00
deraadt
d4b27dc4b9 the hup bug is incorrectly described; ok mlarkin 2024-08-22 03:10:42 +00:00
deraadt
0605abeb8f unfair to discriminate against 0 2024-08-21 20:20:24 +00:00
florian
9a380d2b77 get rid of inet_aton
OK deraadt
2024-08-21 14:55:17 +00:00
deraadt
ee44e7e05c This quiz is pretty old. Don't know when this happened, but it seems
the wellknown name of "tupa inca yupanqui" has evolved to be either
"topa inca yupanqui" or "tupac inca yupanqui", so accept those answers.
research by claudio, inhouse inca expert
2024-08-21 14:08:19 +00:00
deraadt
9044f6cda7 accept capital letter answers 2024-08-21 13:44:17 +00:00
deraadt
7c24e31139 difficult sequence for a mathematician to identify 2024-08-21 13:22:29 +00:00
deraadt
f57da120da satisfy the number version of the quiz; with mglocker 2024-08-21 05:08:54 +00:00
deraadt
e7b6329173 Add a simple random number sequence to the questions
ok mglocker
2024-08-21 04:56:27 +00:00
mglocker
fc14f24d24 Add lions.
suggested and ok jmc@
2024-08-21 04:29:43 +00:00
mglocker
dc0f41646a Add numeric morse codes.
ok jmc@
2024-08-21 04:28:05 +00:00
mglocker
093634d99b Hippo and rhino babies are also calf's.
ok jmc@
2024-08-21 04:27:02 +00:00
mglocker
87ff3bc196 Add new substraction problem which difference results in the answer to the
ultimate question of life, the universe, and everything.

ok jmc@
2024-08-21 04:25:26 +00:00
deraadt
a2c7f68862 having a file called "OWNER" lying around in a directory of
(effectively) public dommain software is weird.  put that info
into a better place.
2024-08-20 16:07:14 +00:00
deraadt
b65f9321d8 annotate signal race 2024-08-20 15:48:32 +00:00
jmc
65eeb6edff add missing apostrophe; 2024-08-19 07:28:00 +00:00
jmc
733fc4c223 robert burns: to a mouse
-The best laid schemes o' mice an' men gang aft a-gley{,}:\
+The best laid schemes o' mice an' men gang aft agley{,}:\

most sources i've checked use "best-laid", but not all, so i've erred
on the side of caution;
2024-08-19 07:23:26 +00:00
jmc
7ee05e0570 catharine howard -> catherine howard; 2024-08-19 07:12:57 +00:00
jmc
ef042be1cc opration -> operation; 2024-08-19 06:54:13 +00:00
jmc
2747293f18 promitto: promise, not primise 2024-08-19 06:53:44 +00:00
jmc
7313b8136e fix double space; 2024-08-19 06:52:16 +00:00
deraadt
db52001621 file not needed 2024-08-19 01:04:10 +00:00
deraadt
eee238c66d spelling error, fixed by "snj", 21 years ago in some other repository 2024-08-19 01:03:12 +00:00