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