CVS commit: src/share/man/man7

2024-03-17 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Mar 17 22:05:24 UTC 2024

Modified Files:
src/share/man/man7: hier.7

Log Message:
hier(7): remove reference to /var/db/pkg

The pkg database lives in ${PREFIX}/pkgdb instead now.

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/share/man/man7/hier.7

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



CVS commit: src/share/man/man7

2024-03-17 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Mar 17 22:05:24 UTC 2024

Modified Files:
src/share/man/man7: hier.7

Log Message:
hier(7): remove reference to /var/db/pkg

The pkg database lives in ${PREFIX}/pkgdb instead now.

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/share/man/man7/hier.7

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

Modified files:

Index: src/share/man/man7/hier.7
diff -u src/share/man/man7/hier.7:1.142 src/share/man/man7/hier.7:1.143
--- src/share/man/man7/hier.7:1.142	Tue Oct 10 21:51:01 2023
+++ src/share/man/man7/hier.7	Sun Mar 17 22:05:23 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: hier.7,v 1.142 2023/10/10 21:51:01 riastradh Exp $
+.\"	$NetBSD: hier.7,v 1.143 2024/03/17 22:05:23 wiz Exp $
 .\"
 .\" Copyright (c) 1990, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)hier.7	8.5 (Berkeley) 6/1/94
 .\"
-.Dd May 12, 2020
+.Dd March 17, 2024
 .Dt HIER 7
 .Os
 .Sh NAME
@@ -1146,18 +1146,6 @@ and
 .It Pa db/
 Miscellaneous automatically generated system-specific database files,
 and persistent files used in the maintenance of third party software.
-.Pp
-.Bl -tag -width "monthly.out" -compact
-.It Pa pkg
-Default location for metadata related to third party software
-packages.
-See
-.Xr pkg_add 1
-for more details of the
-.Nx
-Packages Collection, or pkgsrc.
-.El
-.Pp
 .It Pa games/
 Miscellaneous game status, log, and high score files.
 .It Pa heimdal/



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:48:02 UTC 2024

Modified Files:
src/lib/libc/gen: vis.c
src/sys/arch/usermode/usermode: thunk.c
src/sys/netinet: sctp.h
src/usr.bin/mail: strings.c

Log Message:
Add missing "e" in few words, in comments and one log message.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libc/gen/vis.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/usermode/usermode/thunk.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/sctp.h
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mail/strings.c

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

Modified files:

Index: src/lib/libc/gen/vis.c
diff -u src/lib/libc/gen/vis.c:1.87 src/lib/libc/gen/vis.c:1.88
--- src/lib/libc/gen/vis.c:1.87	Sat Jan 20 14:52:47 2024
+++ src/lib/libc/gen/vis.c	Sun Mar 17 21:48:02 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: vis.c,v 1.87 2024/01/20 14:52:47 christos Exp $	*/
+/*	$NetBSD: vis.c,v 1.88 2024/03/17 21:48:02 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.87 2024/01/20 14:52:47 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.88 2024/03/17 21:48:02 andvar Exp $");
 #endif /* LIBC_SCCS and not lint */
 #ifdef __FBSDID
 __FBSDID("$FreeBSD$");
@@ -653,7 +653,7 @@ istrsenvisx(char **mbdstp, size_t *dlen,
 		mbdst += clen;
 		/* Advance buffer character pointer. */
 		dst++;
-		/* Incrment output character count. */
+		/* Increment output character count. */
 		olen += clen;
 	}
 

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.92 src/sys/arch/usermode/usermode/thunk.c:1.93
--- src/sys/arch/usermode/usermode/thunk.c:1.92	Wed May  8 13:40:16 2019
+++ src/sys/arch/usermode/usermode/thunk.c	Sun Mar 17 21:48:01 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.92 2019/05/08 13:40:16 isaki Exp $ */
+/* $NetBSD: thunk.c,v 1.93 2024/03/17 21:48:01 andvar Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill 
@@ -28,7 +28,7 @@
 
 #include 
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.92 2019/05/08 13:40:16 isaki Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.93 2024/03/17 21:48:01 andvar Exp $");
 #endif
 
 #define _KMEMUSER
@@ -1436,7 +1436,7 @@ thunk_rfb_poll(thunk_rfb_t *rfb, thunk_r
 			framebuffer_update_request[2],
 			framebuffer_update_request[3],
 			framebuffer_update_request[4],
-			framebuffer_update_request[0]?"Incrmental":"Complete");
+			framebuffer_update_request[0]?"Incremental":"Complete");
 #endif
 			
 		if (framebuffer_update_request[0] == 0) {

Index: src/sys/netinet/sctp.h
diff -u src/sys/netinet/sctp.h:1.5 src/sys/netinet/sctp.h:1.6
--- src/sys/netinet/sctp.h:1.5	Sun Oct 24 20:00:12 2021
+++ src/sys/netinet/sctp.h	Sun Mar 17 21:48:01 2024
@@ -1,5 +1,5 @@
 /*	$KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $	*/
-/*	$NetBSD: sctp.h,v 1.5 2021/10/24 20:00:12 andvar Exp $ */
+/*	$NetBSD: sctp.h,v 1.6 2024/03/17 21:48:01 andvar Exp $ */
 
 #ifndef _NETINET_SCTP_H_
 #define _NETINET_SCTP_H_
@@ -146,8 +146,8 @@ struct sctp_paramhdr {
 #define SCTP_PEER_PUBLIC_KEY0x0100 /* get the peers public key */
 #define SCTP_MY_PUBLIC_KEY  0x0101 /* get/set my endpoints public key */
 #define SCTP_SET_AUTH_SECRET0x0102 /* get/set my shared secret */
-#define SCTP_SET_AUTH_CHUNKS0x0103/* specify what chunks you want
-		* the system may have additional requirments
+#define SCTP_SET_AUTH_CHUNKS0x0103 /* specify what chunks you want
+		 * the system may have additional requirements
 		 * as well. I.e. probably ASCONF/ASCONF-ACK no matter
 		 * if you want it or not.
 		 */

Index: src/usr.bin/mail/strings.c
diff -u src/usr.bin/mail/strings.c:1.18 src/usr.bin/mail/strings.c:1.19
--- src/usr.bin/mail/strings.c:1.18	Tue Jan 12 14:45:31 2010
+++ src/usr.bin/mail/strings.c	Sun Mar 17 21:48:02 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: strings.c,v 1.18 2010/01/12 14:45:31 christos Exp $	*/
+/*	$NetBSD: strings.c,v 1.19 2024/03/17 21:48:02 andvar Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)strings.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: strings.c,v 1.18 2010/01/12 14:45:31 christos Exp $");
+__RCSID("$NetBSD: strings.c,v 1.19 2024/03/17 21:48:02 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -107,7 +107,7 @@ salloc(size_t size)
 }
 
 /*
- * Allocate zeroed space for 'number' elments of size 'size'.
+ * Allocate zeroed space for 'number' elements of size 'size'.
  */
 PUBLIC void *
 csalloc(size_t number, size_t size)



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:48:02 UTC 2024

Modified Files:
src/lib/libc/gen: vis.c
src/sys/arch/usermode/usermode: thunk.c
src/sys/netinet: sctp.h
src/usr.bin/mail: strings.c

Log Message:
Add missing "e" in few words, in comments and one log message.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libc/gen/vis.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/usermode/usermode/thunk.c
cvs rdiff -u -r1.5 -r1.6 src/sys/netinet/sctp.h
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mail/strings.c

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



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:37:53 UTC 2024

Modified Files:
src/lib/libc/net: inet6_rth_space.3
src/usr.bin/touch: touch.1

Log Message:
s/argumment/argument/ in documentation.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/net/inet6_rth_space.3
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/touch/touch.1

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

Modified files:

Index: src/lib/libc/net/inet6_rth_space.3
diff -u src/lib/libc/net/inet6_rth_space.3:1.3 src/lib/libc/net/inet6_rth_space.3:1.4
--- src/lib/libc/net/inet6_rth_space.3:1.3	Sun Dec  4 01:29:32 2022
+++ src/lib/libc/net/inet6_rth_space.3	Sun Mar 17 21:37:53 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: inet6_rth_space.3,v 1.3 2022/12/04 01:29:32 uwe Exp $
+.\"	$NetBSD: inet6_rth_space.3,v 1.4 2024/03/17 21:37:53 andvar Exp $
 .\"	$KAME: inet6_rth_space.3,v 1.7 2005/01/05 03:00:44 itojun Exp $
 .\"
 .\" Copyright (C) 2004 WIDE Project.
@@ -84,7 +84,7 @@ of the type, specified in the
 .Fa type
 argument and containing the number of addresses specified in the
 .Fa segments
-argumment.
+argument.
 When the type is
 .Dv IPV6_RTHDR_TYPE_0
 the number of segments must be from 0 through 127.

Index: src/usr.bin/touch/touch.1
diff -u src/usr.bin/touch/touch.1:1.29 src/usr.bin/touch/touch.1:1.30
--- src/usr.bin/touch/touch.1:1.29	Sat Feb 10 00:19:30 2024
+++ src/usr.bin/touch/touch.1	Sun Mar 17 21:37:53 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: touch.1,v 1.29 2024/02/10 00:19:30 kre Exp $
+.\"	$NetBSD: touch.1,v 1.30 2024/03/17 21:37:53 andvar Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -389,7 +389,7 @@ That is, this merely tests that the
 .Ar human-datetime
 and
 .Ar datetime
-argumments to
+arguments to
 .Fl d
 and
 .Fl t



CVS commit: src

2024-03-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar 17 21:37:53 UTC 2024

Modified Files:
src/lib/libc/net: inet6_rth_space.3
src/usr.bin/touch: touch.1

Log Message:
s/argumment/argument/ in documentation.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/net/inet6_rth_space.3
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/touch/touch.1

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



CVS commit: src/sys/dev/usb

2024-03-17 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Mar 17 20:10:52 UTC 2024

Modified Files:
src/sys/dev/usb: ucycom.c

Log Message:
Prevent errant ucycom-presenting device from causing up to 225
bytes of kernel memory following input buffer to leak to tty
application.

Probably not practically expolitable, but you never know.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/usb/ucycom.c

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

Modified files:

Index: src/sys/dev/usb/ucycom.c
diff -u src/sys/dev/usb/ucycom.c:1.56 src/sys/dev/usb/ucycom.c:1.57
--- src/sys/dev/usb/ucycom.c:1.56	Wed Oct 26 23:50:28 2022
+++ src/sys/dev/usb/ucycom.c	Sun Mar 17 20:10:52 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ucycom.c,v 1.56 2022/10/26 23:50:28 riastradh Exp $	*/
+/*	$NetBSD: ucycom.c,v 1.57 2024/03/17 20:10:52 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ucycom.c,v 1.56 2022/10/26 23:50:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucycom.c,v 1.57 2024/03/17 20:10:52 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -978,6 +978,7 @@ ucycom_intr(void *cookie, void *ibuf, u_
 		st = cp[0];
 		n = cp[1];
 		cp += 2;
+		n = uimin(n, 30);
 		break;
 
 	default:



CVS commit: src/sys/dev/usb

2024-03-17 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Mar 17 20:10:52 UTC 2024

Modified Files:
src/sys/dev/usb: ucycom.c

Log Message:
Prevent errant ucycom-presenting device from causing up to 225
bytes of kernel memory following input buffer to leak to tty
application.

Probably not practically expolitable, but you never know.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/usb/ucycom.c

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