CVS commit: [netbsd-9] src/games/fortune/datfiles

2020-06-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun 21 10:39:58 UTC 2020

Modified Files:
src/games/fortune/datfiles [netbsd-9]: fortunes netbsd-tips

Log Message:
Pull up following revision(s) (requested by sevan in ticket #969):

games/fortune/datfiles/fortunes: revision 1.90
games/fortune/datfiles/fortunes: revision 1.91
games/fortune/datfiles/netbsd-tips: revision 1.7
games/fortune/datfiles/netbsd-tips: revision 1.8
games/fortune/datfiles/fortunes: revision 1.87
games/fortune/datfiles/fortunes: revision 1.88
games/fortune/datfiles/fortunes: revision 1.89

something I apparently forgot to commit months or years ago

Andrew Weatherall's tattoo and a track on A Pox On The Pioneers album.
https://pbs.twimg.com/media/ERAuddhU4AAFv3w?format=jpg=orig
Story:
https://www.dummymag.com/features/andrew-weatherall-interview-it-s-bollocks-it-s-discos-tell-me-tales-of-the/

Disks can sense vibes, DTrace confirms it.
https://youtu.be/tDacjrSCeq4

Heads up on Bell patents
P21 on https://minnie.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf

A revision of "The purpose of computing is insight, not numbers" by
Richard Hamming.
 From The Art of Doing Science and Engineering

Properly quote printf string
Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!

Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
{download-vulnerability-list,audit-packages}.


To generate a diff of this commit:
cvs rdiff -u -r1.82.2.1 -r1.82.2.2 src/games/fortune/datfiles/fortunes
cvs rdiff -u -r1.6 -r1.6.2.1 src/games/fortune/datfiles/netbsd-tips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/games/fortune/datfiles

2020-06-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun 21 10:39:58 UTC 2020

Modified Files:
src/games/fortune/datfiles [netbsd-9]: fortunes netbsd-tips

Log Message:
Pull up following revision(s) (requested by sevan in ticket #969):

games/fortune/datfiles/fortunes: revision 1.90
games/fortune/datfiles/fortunes: revision 1.91
games/fortune/datfiles/netbsd-tips: revision 1.7
games/fortune/datfiles/netbsd-tips: revision 1.8
games/fortune/datfiles/fortunes: revision 1.87
games/fortune/datfiles/fortunes: revision 1.88
games/fortune/datfiles/fortunes: revision 1.89

something I apparently forgot to commit months or years ago

Andrew Weatherall's tattoo and a track on A Pox On The Pioneers album.
https://pbs.twimg.com/media/ERAuddhU4AAFv3w?format=jpg=orig
Story:
https://www.dummymag.com/features/andrew-weatherall-interview-it-s-bollocks-it-s-discos-tell-me-tales-of-the/

Disks can sense vibes, DTrace confirms it.
https://youtu.be/tDacjrSCeq4

Heads up on Bell patents
P21 on https://minnie.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf

A revision of "The purpose of computing is insight, not numbers" by
Richard Hamming.
 From The Art of Doing Science and Engineering

Properly quote printf string
Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!

Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
{download-vulnerability-list,audit-packages}.


To generate a diff of this commit:
cvs rdiff -u -r1.82.2.1 -r1.82.2.2 src/games/fortune/datfiles/fortunes
cvs rdiff -u -r1.6 -r1.6.2.1 src/games/fortune/datfiles/netbsd-tips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/fortune/datfiles/fortunes
diff -u src/games/fortune/datfiles/fortunes:1.82.2.1 src/games/fortune/datfiles/fortunes:1.82.2.2
--- src/games/fortune/datfiles/fortunes:1.82.2.1	Sun Dec  8 13:06:37 2019
+++ src/games/fortune/datfiles/fortunes	Sun Jun 21 10:39:58 2020
@@ -16289,3 +16289,18 @@ I wonder why I wonder.
 I wonder why I wonder why
 I wonder why I wonder!
 		-- Richard P. Feynman, "Always Trying to Escape"
+%
+Fanfare, n.:
+The food available for consumption at a con.
+%
+Fail we may, sail we must
+%
+Don't shout at your JBODs, they don't like it!
+		-- Brendan Gregg, "Shouting in the Datacenter"
+%
+Bell has two patents on UNIX
+a) set-user-id bit
+b) on "typo" !
+		-- John Lions, Australian UNIX Users Group Newsletter, Oct 1978
+%
+The purpose of computing numbers is not yet in sight

Index: src/games/fortune/datfiles/netbsd-tips
diff -u src/games/fortune/datfiles/netbsd-tips:1.6 src/games/fortune/datfiles/netbsd-tips:1.6.2.1
--- src/games/fortune/datfiles/netbsd-tips:1.6	Sun Sep  2 16:08:12 2018
+++ src/games/fortune/datfiles/netbsd-tips	Sun Jun 21 10:39:58 2020
@@ -35,11 +35,11 @@ You can view your non-default Postfix se
 To report about installed packages with known vulnerabilities,
 fetch the latest pkg-vulnerabilities file as the superuser with:
 
- download-vulnerability-list
+ pkg_admin fetch-pkg-vulnerabilities
 
 And then run:
 
- audit-packages
+ pkg_admin audit
 %
 The following shows an example of temporarily adding 10MB more swap
 space for virtual memory:
@@ -51,7 +51,7 @@ space for virtual memory:
 If your console ever gets broken, you can try resetting it to its
 initial state with:
 
- printf "\033c
+ printf "\033c"
 %
 If you installed a package, but don't know what the software is
 called or what executables to run, use pkg_info with the -L switch



CVS commit: [netbsd-9] src/games/fortune

2020-04-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Apr 30 16:19:29 UTC 2020

Modified Files:
src/games/fortune/strfile [netbsd-9]: strfile.c
src/games/fortune/unstr [netbsd-9]: unstr.c

Log Message:
Pull up following revision(s) (requested by nia in ticket #879):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.28.1 src/games/fortune/strfile/strfile.c
cvs rdiff -u -r1.14 -r1.14.34.1 src/games/fortune/unstr/unstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/games/fortune

2020-04-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Apr 30 16:19:29 UTC 2020

Modified Files:
src/games/fortune/strfile [netbsd-9]: strfile.c
src/games/fortune/unstr [netbsd-9]: unstr.c

Log Message:
Pull up following revision(s) (requested by nia in ticket #879):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.28.1 src/games/fortune/strfile/strfile.c
cvs rdiff -u -r1.14 -r1.14.34.1 src/games/fortune/unstr/unstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/fortune/strfile/strfile.c
diff -u src/games/fortune/strfile/strfile.c:1.38 src/games/fortune/strfile/strfile.c:1.38.28.1
--- src/games/fortune/strfile/strfile.c:1.38	Thu Sep 19 00:34:00 2013
+++ src/games/fortune/strfile/strfile.c	Thu Apr 30 16:19:29 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: strfile.c,v 1.38 2013/09/19 00:34:00 uwe Exp $	*/
+/*	$NetBSD: strfile.c,v 1.38.28.1 2020/04/30 16:19:29 martin Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)strfile.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: strfile.c,v 1.38 2013/09/19 00:34:00 uwe Exp $");
+__RCSID("$NetBSD: strfile.c,v 1.38.28.1 2020/04/30 16:19:29 martin Exp $");
 #endif
 #endif /* not lint */
 #endif /* __NetBSD__ */
@@ -267,6 +267,7 @@ getargs(int argc, char **argv)
 	int	ch;
 	extern	int optind;
 	extern	char *optarg;
+	size_t	len;
 
 	while ((ch = getopt(argc, argv, "c:iorsx")) != -1)
 		switch(ch) {
@@ -300,14 +301,25 @@ getargs(int argc, char **argv)
 
 	if (*argv) {
 		Infile = *argv;
-		if (*++argv)
-			(void) strcpy(Outfile, *argv);
+		if (*++argv) {
+			len = strlen(*argv);
+			if (len >= sizeof(Outfile)) {
+puts("Bad output filename");
+usage();
+			}
+			(void) memcpy(Outfile, *argv, len + 1);
+		}
 	}
 	if (!Infile) {
 		puts("No input file name");
 		usage();
 	}
 	if (*Outfile == '\0') {
+		len = strlen(Infile) + sizeof(".dat");
+		if (len > sizeof(Outfile)) {
+			puts("Bad input filename");
+			usage();
+		}
 		(void) strcpy(Outfile, Infile);
 		(void) strcat(Outfile, ".dat");
 	}

Index: src/games/fortune/unstr/unstr.c
diff -u src/games/fortune/unstr/unstr.c:1.14 src/games/fortune/unstr/unstr.c:1.14.34.1
--- src/games/fortune/unstr/unstr.c:1.14	Tue Jun 19 05:46:08 2012
+++ src/games/fortune/unstr/unstr.c	Thu Apr 30 16:19:29 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: unstr.c,v 1.14 2012/06/19 05:46:08 dholland Exp $	*/
+/*	$NetBSD: unstr.c,v 1.14.34.1 2020/04/30 16:19:29 martin Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19
 #if 0
 static char sccsid[] = "@(#)unstr.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: unstr.c,v 1.14 2012/06/19 05:46:08 dholland Exp $");
+__RCSID("$NetBSD: unstr.c,v 1.14.34.1 2020/04/30 16:19:29 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -114,7 +114,7 @@ main(int ac __unused, char **av)
 void
 getargs(char *av[])
 {
-	if (!*++av) {
+	if (!*++av || (strlen(*av) + sizeof(".dat")) > sizeof(Datafile)) {
 		(void) fprintf(stderr, "usage: unstr datafile\n");
 		exit(1);
 	}



CVS commit: [netbsd-9] src/games/fortune/datfiles

2019-12-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec  8 13:06:37 UTC 2019

Modified Files:
src/games/fortune/datfiles [netbsd-9]: fortunes netbsd

Log Message:
Pull up following revision(s) (requested by sevan in ticket #501):

games/fortune/datfiles/fortunes: revision 1.83
games/fortune/datfiles/fortunes: revision 1.84
games/fortune/datfiles/fortunes: revision 1.85
games/fortune/datfiles/fortunes: revision 1.86
games/fortune/datfiles/netbsd: revision 1.29

Donnie Darko

Chris' happiest moment
http://bbc.co.uk/programmes/b09b1zbb

Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc

https://twitter.com/sei6r/status/1182433546331279360

Introspection. From "Surely You're Joking, Mr. Feynman!"


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.82.2.1 src/games/fortune/datfiles/fortunes
cvs rdiff -u -r1.28 -r1.28.14.1 src/games/fortune/datfiles/netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/games/fortune/datfiles

2019-12-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec  8 13:06:37 UTC 2019

Modified Files:
src/games/fortune/datfiles [netbsd-9]: fortunes netbsd

Log Message:
Pull up following revision(s) (requested by sevan in ticket #501):

games/fortune/datfiles/fortunes: revision 1.83
games/fortune/datfiles/fortunes: revision 1.84
games/fortune/datfiles/fortunes: revision 1.85
games/fortune/datfiles/fortunes: revision 1.86
games/fortune/datfiles/netbsd: revision 1.29

Donnie Darko

Chris' happiest moment
http://bbc.co.uk/programmes/b09b1zbb

Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc

https://twitter.com/sei6r/status/1182433546331279360

Introspection. From "Surely You're Joking, Mr. Feynman!"


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.82.2.1 src/games/fortune/datfiles/fortunes
cvs rdiff -u -r1.28 -r1.28.14.1 src/games/fortune/datfiles/netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/fortune/datfiles/fortunes
diff -u src/games/fortune/datfiles/fortunes:1.82 src/games/fortune/datfiles/fortunes:1.82.2.1
--- src/games/fortune/datfiles/fortunes:1.82	Fri Jul 26 07:41:22 2019
+++ src/games/fortune/datfiles/fortunes	Sun Dec  8 13:06:37 2019
@@ -16271,3 +16271,21 @@ that was instantly responsive to every a
 you derive from that?
 		-- Douglas Engelbart, Fall Joint Computer Conference,
 		   December 9th, 1968
+%
+They made me do it
+%
+It was the first thing that I formed a really powerful bond with.
+It was some sort of mental love missile and I just lit the touch paper and
+fired myself into it, at oblivious speed, and it exploded, and sparkled and it
+was totally beautiful.
+		-- Chris Packham and the kestrel
+%
+Austerity is the idea that the global financial crash of 2008 was caused by
+there being too many libraries in Wolverhampton.
+		-- Alexei Sayle
+%
+I wonder why. I wonder why.
+I wonder why I wonder.
+I wonder why I wonder why
+I wonder why I wonder!
+		-- Richard P. Feynman, "Always Trying to Escape"

Index: src/games/fortune/datfiles/netbsd
diff -u src/games/fortune/datfiles/netbsd:1.28 src/games/fortune/datfiles/netbsd:1.28.14.1
--- src/games/fortune/datfiles/netbsd:1.28	Sun Apr 16 20:08:59 2017
+++ src/games/fortune/datfiles/netbsd	Sun Dec  8 13:06:37 2019
@@ -552,3 +552,6 @@ NetBSD: Dead on Target
 		-- Gimpy
 %
 NetBSD JIHBED
+%
+It's my happy place.
+		-- zmh