Include in crypt_checkpass.3

2021-10-29 Thread Emil Engler
The man-page crypt_checkpass.3 makes a reference to the constant '_PASSWORD_LEN' which is defined in but doesn't say so. Index: lib/libc/crypt/crypt_checkpass.3 === RCS file: /cvs/src/lib/libc/crypt/crypt_checkpass.3,v retrieving

acme-client(1): Fix misleading comment

2021-08-24 Thread Emil Engler
While auditing acme-client(1) I have noticed that the source code still makes references to curl. Apparently acme-client(1) used curl for HTTP transfers up until this commit: https://github.com/kristapsdz/acme-client/commit/d9d2382d5ebfa9dc6c3c086c1acf0e905d389fbc The following diff should solve

Replace .Ar macros with .Fa in pledge.2

2021-06-30 Thread Emil Engler
The pledge.2 man-page makes use of the incorrect .Ar macro which is not intended for manuals in section 2 as .Fa exists for that purpose. Similar to 1.18 in /cvs/src/lib/libm/man/sqrt.3 Index: pledge.2 === RCS file:

More use of mdoc macros in sqrt.3

2021-06-29 Thread Emil Engler
This diff inserts an .Fa to the places where it belongs to as well as an .Er for EDOM. Index: lib/libm/man/sqrt.3 === RCS file: /cvs/src/lib/libm/man/sqrt.3,v retrieving revision 1.17 diff -u -p -u -p -r1.17 sqrt.3 ---

Extend history for getpagesize(3)

2021-05-22 Thread Emil Engler
The man page for the obsolete function getpagesize(3) still lacks information regarding its removal (and existance) in SUS. This diff makes this more clear. Index: lib/libc/gen/getpagesize.3 === RCS file:

Correct name for size_t argument in strlcpy.3

2021-04-30 Thread Emil Engler
Hello tech@, currently the man-page for strlcpy(3) and strlcat(3) calls the third argument for those functions "dstsize" whereas the C source code calls it "dsize". This patch addresses this issue by renaming it to "dsize" to keep coherency between the man-page and the source code. diff --git

Re: mg: minibuffer anomaly

2021-02-26 Thread Emil Engler
I consider the name "null" for a goto section as too misleading. I would prefer something like "nokey" or "skipkey". Cheers, Emil Engler On Thu, Feb 25, 2021 at 07:40:01PM +, Mark Lumsden wrote: > I was testing mg's goto-line function via the minibuffer (M-

Re: usb_init_task(9): correct type

2021-01-16 Thread Emil Engler
On 1/16/21 8:00 AM, Anton Lindqvist wrote: Hi, The usb_init_task(9) macro accepts a `struct usb_task'. If it's macro, is it even correct to show the types it accepts in it's "prototype"? Other parts of the documentation (kqueue(2) EV_SET for example) leave all types out.

Re: ldapd warning

2020-11-28 Thread Emil Engler
It can overflow! Please check for the positivity and width of size_t before! Cheers, Emil On 11/28/20 11:20 PM, Theo Buehler wrote: /usr/src/usr.sbin/ldapd/util.c:46:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]

Re: Typo fix in nsd.conf.5.in

2020-11-27 Thread Emil Engler
I think "ease of compatibility" was meant I personally would keep it that way but thanks for the nice catch! Cheers, Emil On 11/27/20 11:44 AM, Eddie Thieda wrote: Hello, Here's a small typo fix, url included if text gets mangled. http://ix.io/2FEF --- nsd.conf.5.in Tue Oct 13 06:06:08

[PATCH]: Return 505 when receiving a HTTP/0.9 request

2020-11-22 Thread Emil Engler
The HTTP/1.1 specification says that we MUST implement HTTP/0.9 which we don't do. We also fail to provide the correct error message if we receive such a request. Here is a patch which will return a 505 error instead of a 400 error if we receive no HTTP version which is the indicator that this

[PATCH]: Fix unclear man page of acpidump(8)

2020-11-22 Thread Emil Engler
The man page of acpidump(8) says that "kern.allowkmem" must be set to some value in order for the program to work properly. However it does not define to what value it must be set. I am not certainly sure if there are other options between 0 and 1 but if so the man page should be fixed anyway

[PATCH]: Clearer documentation when using EVFILT_EXCEPT

2020-11-13 Thread Emil Engler
Currently it isn't mentioned that a socket is required when using EVFILT_EXCEPT with NOTE_OOB. To some experienced users it might be clear that it must be a socket but I don't think an additional word would hurt anyone. Index: lib/libc/sys/kqueue.2

Re: [PATCH]: Add a check for upgrade feature to sysupgrade(8)

2020-08-03 Thread Emil Engler
nne wrote: >> On Mon, 3 Aug 2020 13:28:38 +0200 >> Emil Engler : >> >>> ## Abstract >>> This patch adds an argument to sysupgrade(8) which makes it possible >>> to check if an upgrade is available, similar to "syspatch -c". >>> This w

[PATCH]: Add a check for upgrade feature to sysupgrade(8)

2020-08-03 Thread Emil Engler
## Abstract This patch adds an argument to sysupgrade(8) which makes it possible to check if an upgrade is available, similar to "syspatch -c". This works both, for snapshots and releases. ## Usage Add "-c" to sysupgrade. If the script exits with a zero, an upgrade is available. If it fails you