CVS: cvs.openbsd.org: src

2023-11-15 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/11/15 23:27:12

Added files:
regress/usr.bin/grep: t28_1.out t28_2.out t28_3.out t28_4.out 
  t28_5.out t28_6.out t28_7.out t28_8.out 

Log message:
Add expected output files, missed in previous commit. I hope our grep is
producing the wanted output at this point.



CVS: cvs.openbsd.org: src

2023-11-15 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 20:17:34

Modified files:
usr.bin/kstat  : kstat.c 

Log message:
avoid reading data when enumerating kstats.

this means we can reliably read the provider/instance/name/unit
tuple, which should avoid "duplicate kstat entry" when multiple
kstat read handlers have issues.

found on a box with multiple rge interfaces, which have hardware
backed kstats that can only be read when the interface is up.



CVS: cvs.openbsd.org: src

2023-11-15 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 19:45:54

Modified files:
usr.bin/kstat  : kstat.c 

Log message:
handle printing cpu freq and volt kstat_kv types



CVS: cvs.openbsd.org: src

2023-11-15 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 19:45:20

Modified files:
sys/sys: kstat.h 

Log message:
cpu frequency and volt types for kstat_kvs



CVS: cvs.openbsd.org: src

2023-11-15 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 16:57:45

Modified files:
sys/dev: bio.c 

Log message:
use a random number as the cookie in bio ioctls.

ok kn@ krw@



CVS: cvs.openbsd.org: src

2023-11-15 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 16:03:38

Modified files:
usr.bin/ssh: sshconnect.c 

Log message:
when connecting via socket (the default case), filter addresses by
AddressFamily if one was specified. Fixes the case where, if
CanonicalizeHostname is enabled, ssh may ignore AddressFamily.
bz5326; ok dtucker



CVS: cvs.openbsd.org: src

2023-11-15 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/11/15 15:51:49

Modified files:
usr.bin/ssh: channels.c channels.h clientloop.c 

Log message:
when deciding whether to enable keystroke timing obfuscation,
only consider enabling it when a channel with a tty is open.

Avoids turning on the obfucation when X11 forwarding only is in use,
which slows it right down. Reported by Roger Marsh



CVS: cvs.openbsd.org: src

2023-11-15 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/11/15 13:23:19

Modified files:
sys/sys: disk.h 
sys/kern   : subr_disk.c 

Log message:
Constify disk_map()'s path argument

The disklabel UID passed in is not modified, reflect that and allow callers
using 'const char *'.

OK miod



CVS: cvs.openbsd.org: src

2023-11-15 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2023/11/15 11:56:53

Modified files:
usr.bin/awk: b.c 

Log message:
fnematch: fix a bug that could result in extra chars being pushed back.

>From Arnold Robbins.  https://github.com/onetrueawk/awk/pull/213



CVS: cvs.openbsd.org: src

2023-11-15 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2023/11/15 11:48:13

Modified files:
usr.bin/awk: b.c 

Log message:
fnematch: fix out-of-bounds access on EOF

fnematch() expects to store a NUL byte when EOF is encountered.
However, the rewrite broke this assumption because r.len from getrune()
is zero on EOF.  This results in j becoming negative on EOF, causing an
out-of-bounds access.  It is simplest to just force r.len to 1 on EOF
to copy a single NUL byte--the rune is initialized to zero even for EOF.

This also fixes the call to adjbuf().  We cannot use 'k' to determine
when we need to expand the buffer now that we are potentially reading
more than a single byte at a time.

https://github.com/onetrueawk/awk/pull/211



CVS: cvs.openbsd.org: src

2023-11-15 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2023/11/15 08:52:09

Modified files:
usr.sbin/ntpd  : ntp.h util.c 

Log message:
Correct denominators when converting NTP fixed point values to double
and vice-versa; ok tb@



CVS: cvs.openbsd.org: www

2023-11-15 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2023/11/15 07:10:40

Modified files:
.  : ftp.html ftplist httpslist 
openbgpd   : ftp.html 
openssh: ftp.html portable.html 
openntpd   : portable.html 
rpki-client: portable.html 

Log message:
sync



CVS: cvs.openbsd.org: www

2023-11-15 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2023/11/15 07:10:16

Modified files:
build  : mirrors.dat 

Log message:
ftp.fsn.hu has been down for some time; reported by Gabor Papp



CVS: cvs.openbsd.org: src

2023-11-15 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2023/11/15 06:36:11

Modified files:
usr.sbin/snmpd : application.c 

Log message:
Make sure we allocate the correct size for an appl_agentcap.

OK claudio@ miod@