<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netbsd/usr.bin, branch lockdoc-9.3</title>
<subtitle>NetBSD fork for lockdoc analysis</subtitle>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/'/>
<entry>
<title>Pull up following revision(s) (requested by simonb in ticket #1480):</title>
<updated>2022-07-17T12:54:56+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2022-07-17T12:54:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=782901f50e8df1be7dd7351f8e10f73f8a1100f5'/>
<id>782901f50e8df1be7dd7351f8e10f73f8a1100f5</id>
<content type='text'>
	usr.bin/vmstat/vmstat.c: revision 1.255

When operating on core files or /dev/mem when using the -M option,
use 64-bit math to calculate pool sizes.  Fixes overflow errors for
pools larger than 4GB and gives the correct output with "vmstat -m"
for in use, total allocation and utilisation numbers.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/vmstat/vmstat.c: revision 1.255

When operating on core files or /dev/mem when using the -M option,
use 64-bit math to calculate pool sizes.  Fixes overflow errors for
pools larger than 4GB and gives the correct output with "vmstat -m"
for in use, total allocation and utilisation numbers.</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by gutteridge in ticket #1433):</title>
<updated>2022-03-13T09:52:20+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2022-03-13T09:52:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=4f5306f6945af898bc7eddaf4e61424e29aa0824'/>
<id>4f5306f6945af898bc7eddaf4e61424e29aa0824</id>
<content type='text'>
	usr.bin/man/man.c: revision 1.69
	usr.bin/man/man.c: revision 1.70
	usr.bin/man/man.c: revision 1.72

man.c: fix -m option so it works as documented

Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.

man: fix type mismatch between enum and int (since yesterday)
No binary change.

man: remove unused global variable 'instype' (since yesterday)
No functional change.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/man/man.c: revision 1.69
	usr.bin/man/man.c: revision 1.70
	usr.bin/man/man.c: revision 1.72

man.c: fix -m option so it works as documented

Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.

man: fix type mismatch between enum and int (since yesterday)
No binary change.

man: remove unused global variable 'instype' (since yesterday)
No functional change.</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by nia in ticket #1379):</title>
<updated>2021-11-30T13:11:47+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-11-30T13:11:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=e3e4092361e77c2a3b68e355c281b128a7c9ad33'/>
<id>e3e4092361e77c2a3b68e355c281b128a7c9ad33</id>
<content type='text'>
	usr.bin/msgs/pathnames.h: revision 1.5

msgs(1): avoid executing /usr/bin/Mail, it no longer exists.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/msgs/pathnames.h: revision 1.5

msgs(1): avoid executing /usr/bin/Mail, it no longer exists.</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1367):</title>
<updated>2021-10-24T10:18:02+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-10-24T10:18:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=f8e54faa93eda48ac0cf911c4e2a91b8bfbef032'/>
<id>f8e54faa93eda48ac0cf911c4e2a91b8bfbef032</id>
<content type='text'>
	usr.bin/ftp/ftp.c: revision 1.174

ftp: remove unnecessary variable assignments

Remove assignment to error in initconn(); it's not tested anywhere after the
initial use, so no need to set it before goto bad.
(Looks like copypasta from the initial addition of the code in rev 1.48.)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/ftp.c: revision 1.174

ftp: remove unnecessary variable assignments

Remove assignment to error in initconn(); it's not tested anywhere after the
initial use, so no need to set it before goto bad.
(Looks like copypasta from the initial addition of the code in rev 1.48.)</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1366):</title>
<updated>2021-10-24T10:16:05+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-10-24T10:16:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=37e9d683cef0a47cd75b02b827c5d0bf97e6f9e7'/>
<id>37e9d683cef0a47cd75b02b827c5d0bf97e6f9e7</id>
<content type='text'>
	usr.bin/ftp/ftp.c: revision 1.173

ftp: validate address from PASV and LPSV response

Fail if the server's response to PASV or LPSV contains an IP address
that doesn't match that of the control connection.
(EPSV already only uses the port portion of the server's response,
per RFC 2428).

Previously a hostile server could cause ftp to open a data connection elsewhere.
Many other ftp implementations have had a similar change for many years,
including those in popular browsers (before they deprecated FTP ...)

Thanks to Simon Josefsson notifying me about
  https://lists.gnu.org/archive/html/bug-inetutils/2021-06/msg00002.html</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/ftp.c: revision 1.173

ftp: validate address from PASV and LPSV response

Fail if the server's response to PASV or LPSV contains an IP address
that doesn't match that of the control connection.
(EPSV already only uses the port portion of the server's response,
per RFC 2428).

Previously a hostile server could cause ftp to open a data connection elsewhere.
Many other ftp implementations have had a similar change for many years,
including those in popular browsers (before they deprecated FTP ...)

Thanks to Simon Josefsson notifying me about
  https://lists.gnu.org/archive/html/bug-inetutils/2021-06/msg00002.html</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1365):</title>
<updated>2021-10-24T10:13:40+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-10-24T10:13:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=eb195f4332d5e7ec8949ee351e3c470dc50986ba'/>
<id>eb195f4332d5e7ec8949ee351e3c470dc50986ba</id>
<content type='text'>
	usr.bin/ftp/fetch.c: revision 1.233

Use raw write(2) instead of fwrite(3) to avoid stream corruption because
of the progress bar interrupts. From RVP.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/fetch.c: revision 1.233

Use raw write(2) instead of fwrite(3) to avoid stream corruption because
of the progress bar interrupts. From RVP.</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1295):</title>
<updated>2021-06-14T11:57:39+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-06-14T11:57:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=1f82364cf725f7200ea5df91faeca9a21d038264'/>
<id>1f82364cf725f7200ea5df91faeca9a21d038264</id>
<content type='text'>
	usr.bin/ftp/ssl.c: revision 1.10
	usr.bin/ftp/ssl.h: revision 1.5
	usr.bin/ftp/version.h: revision 1.93
	usr.bin/ftp/Makefile: revision 1.39

use fetch_*() for I/O with SMALLPROG / !WITH_SSL builds

Adapt the SMALLPROG / -UWITH_SSL build to also use the fetch_*()
methods from ssl.c, instead of using stdio, as stdio isn't robust
when using interruptable signals.

Disable ssl-specific support in the fetch_*() methods if WITH_SSL
isn't defined, so SMALLPROG still doesn't have ssl support (as expected).

The resulting SMALLPROG binary is slightly larger than before
(e.g., 157KiB vs 153KiB on amd64).

Set version to 20210603 for this fix and the SO_KEEPALIVE fix for PR 56129.

PR install/56219</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/ssl.c: revision 1.10
	usr.bin/ftp/ssl.h: revision 1.5
	usr.bin/ftp/version.h: revision 1.93
	usr.bin/ftp/Makefile: revision 1.39

use fetch_*() for I/O with SMALLPROG / !WITH_SSL builds

Adapt the SMALLPROG / -UWITH_SSL build to also use the fetch_*()
methods from ssl.c, instead of using stdio, as stdio isn't robust
when using interruptable signals.

Disable ssl-specific support in the fetch_*() methods if WITH_SSL
isn't defined, so SMALLPROG still doesn't have ssl support (as expected).

The resulting SMALLPROG binary is slightly larger than before
(e.g., 157KiB vs 153KiB on amd64).

Set version to 20210603 for this fix and the SO_KEEPALIVE fix for PR 56129.

PR install/56219</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1294):</title>
<updated>2021-06-14T11:52:52+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-06-14T11:52:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=20820be1aafbb3a0fcc5e4005d457670cbaf6781'/>
<id>20820be1aafbb3a0fcc5e4005d457670cbaf6781</id>
<content type='text'>
	usr.bin/ftp/cmds.c: revision 1.141
	usr.bin/ftp/ftp.1: revision 1.143

ftp(1): fix description of "debug"

"debug" command and documentation got accidentally renamed
to "ftp_debug" 13 years ago, and was only partially fixed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/cmds.c: revision 1.141
	usr.bin/ftp/ftp.1: revision 1.143

ftp(1): fix description of "debug"

"debug" command and documentation got accidentally renamed
to "ftp_debug" 13 years ago, and was only partially fixed.</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1293):</title>
<updated>2021-06-14T11:45:48+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-06-14T11:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=b256097fcad97bc9d8b21c4837d9712a2e4fe93b'/>
<id>b256097fcad97bc9d8b21c4837d9712a2e4fe93b</id>
<content type='text'>
	usr.bin/ftp/ftp.c: revision 1.172

set SO_KEEPALIVE on control connection

Attempt to prevent timeouts of the control connection by setting SO_KEEPALIVE.
This matches the equivalent behaviour in ftpd.

Note: This is a much simpler change than adding a background polling event
to invoke "STAT" (or "NOOP") on the control connection during a transfer.
(It's unclear from RFC 959 whether "NOOP" is even permitted during a transfer).

PR bin/56129</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/ftp.c: revision 1.172

set SO_KEEPALIVE on control connection

Attempt to prevent timeouts of the control connection by setting SO_KEEPALIVE.
This matches the equivalent behaviour in ftpd.

Note: This is a much simpler change than adding a background polling event
to invoke "STAT" (or "NOOP") on the control connection during a transfer.
(It's unclear from RFC 959 whether "NOOP" is even permitted during a transfer).

PR bin/56129</pre>
</div>
</content>
</entry>
<entry>
<title>Pull up following revision(s) (requested by lukem in ticket #1292):</title>
<updated>2021-06-14T11:34:20+00:00</updated>
<author>
<name>martin</name>
<email>martin@NetBSD.org</email>
</author>
<published>2021-06-14T11:34:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=cee0a30cf5559d154f06b543a30e0084b1754f83'/>
<id>cee0a30cf5559d154f06b543a30e0084b1754f83</id>
<content type='text'>
	usr.bin/ftp/fetch.c: revision 1.232

fetch_url: improve signal handler restoration

Use SIG_ERR not NULL as the indicator that a signal handler
hasn't been changed, so that SIG_DFL (equivalent to NULL)
will be restored.

Fix restoration of SIGQUIT; use the old handler not SIGPIPE's.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	usr.bin/ftp/fetch.c: revision 1.232

fetch_url: improve signal handler restoration

Use SIG_ERR not NULL as the indicator that a signal handler
hasn't been changed, so that SIG_DFL (equivalent to NULL)
will be restored.

Fix restoration of SIGQUIT; use the old handler not SIGPIPE's.</pre>
</div>
</content>
</entry>
</feed>
