Re: [PATCH] sysupgrade

2020-05-03 Thread Consus
On Sun, May 03, 2020 at 04:41:13AM -0400, Chris Bennett wrote: > The FAQ already describes exactly how to upgrade with whatever sets one > wants to. I have used that method many, many times successfully. > I can't see any reason whatsoever to turn an addon tool into anything > more than what it is.

Re: smtpd remove implicit ruleset behavior

2019-11-24 Thread Consus
On 10:54 Sun 24 Nov, Gilles Chehade wrote: > Hello, > > Ten years ago, it seemed a very neat idea that OpenSMTPD would have some > implicit defaults to avoid people creating open relays. > > Back then I was trying to make the smtpd.conf as compact as possible and > came up with the very nice idea

Re: unveil(2) sysctl(8)

2019-06-07 Thread Consus
On 18:14 Fri 07 Jun, Ricardo Mestre wrote: > Hi, > > My eyes may be cheating me in plain sight, but sysctl(8) doesn't seem to > require fs access at all. > > Comments? OK? > > Index: sysctl.c > === > RCS file: /cvs/src/sbin/sysctl/s

Re: pledge(2)

2019-04-25 Thread Consus
On 10:46 Thu 25 Apr, NN wrote: > but why the dumped core file has named like (restricts_the_pr.core) and not > restricts_the_process.core? Process name can be up to 16 bytes, I guess that's it.

Re: vmd: rate-limit to avoid reboot loops

2018-10-06 Thread Consus
On 23:32 Fri 05 Oct, Reyk Floeter wrote: > Hi, > > it sometimes happens that a VM is stuck in a reboot loop. This isn't > very pleasent for vmd, so this diff attempts to introduce a hard > rate-limit: if the VM rebooted after less than VM_START_RATE_SEC (6) > seconds, increment a counter. If thi

Re: [PATCH] Define IMSG_DATA_SIZE() in imsg.h

2018-05-28 Thread Consus
On 00:04 Mon 28 May, Klemens Nanni wrote: > On Sun, May 27, 2018 at 01:12:21AM +0300, Consus wrote: > > +++ b/usr.sbin/httpd/httpd.h > > @@ -195,7 +195,6 @@ struct imsgev { > > if (IMSG_DATA_SIZE(imsg) < sizeof(*p)) \ > > fa

[PATCH] Define IMSG_DATA_SIZE() in imsg.h

2018-05-26 Thread Consus
To reduce code duplication a little bit. diff --git a/lib/libutil/imsg.h b/lib/libutil/imsg.h index 8bf9414789b..8436e157b38 100644 --- a/lib/libutil/imsg.h +++ b/lib/libutil/imsg.h @@ -23,6 +23,7 @@ #define IBUF_READ_SIZE 65535 #define IMSG_HEADER_SIZE sizeof(struct imsg_hdr) +#

[PATCH] Move definition of IMSG_DATA_SIZE() to imsg.h

2017-08-30 Thread Consus
There is a bunch of programs that define IMSG_DATA_SIZE() themselves in a similar fashion. This patch reduces code duplication a bit. --- lib/libutil/imsg.h | 1 + sbin/iked/iked.h | 1 - usr.sbin/httpd/httpd.h | 1 - usr.sbin/relayd/relayd.h | 1 - usr.sbin/snmpd/snmpd.h | 1 -

Re: [PATCH] Do not mention newaliases(8) in /etc/mail/aliases

2017-05-31 Thread Consus
On 11:49 Wed 31 May, Antoine Jacoutot wrote: > I proposed the same a while ago but people preferred to keep it in > regard to other MTA. Maybe it's time to revisit ? Looks like I already have proposed it last September. Totally forgot =/

[PATCH] Do not mention newaliases(8) in /etc/mail/aliases

2017-05-31 Thread Consus
OpenBSD defaults to file table now so there is no need in running newaliases(8). --- etc/mail/aliases | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/etc/mail/aliases b/etc/mail/aliases index c1ac04b5a81..045b2b2a456 100644 --- a/etc/mail/aliases +++ b/etc/mail/aliases

[PATCH] Remove deprecated newaliases NOTE

2016-09-22 Thread Consus
Since smtpd now uses file table instead of db this NOTE is not accurate. --- etc/mail/aliases | 4 1 file changed, 4 deletions(-) diff --git a/etc/mail/aliases b/etc/mail/aliases index fe08bf1..38f7691 100644 --- a/etc/mail/aliases +++ b/etc/mail/aliases @@ -4,10 +4,6 @@ # Aliases in this

Re: [PATCH] shutdown: dot not write non-printable characters to wall(1)

2016-08-01 Thread Consus
On 22:31 Mon 01 Aug, Martijn van Duren wrote: > On 08/01/16 20:58, Consus wrote: > > The wall(1) utility now replaces non-printable ASCII characters with a > > quotation mark. This results in a funny message: > > > > ?*** System shutdown message from consus@localho

Re: [PATCH] shutdown: dot not write non-printable characters to wall(1)

2016-08-01 Thread Consus
On 13:06 Mon 01 Aug, Andy Bradford wrote: > Thus said Consus on Mon, 01 Aug 2016 21:58:16 +0300: > > > This patch fixes the issue by removing '\007' from the shutdown > > notification. > > Do ttys no longer understand bel? It won't hit a t

[PATCH] shutdown: dot not write non-printable characters to wall(1)

2016-08-01 Thread Consus
The wall(1) utility now replaces non-printable ASCII characters with a quotation mark. This results in a funny message: ?*** System shutdown message from consus@localhost ***? This patch fixes the issue by removing '\007' from the shutdown notification. --- sbin/shutdown/shut

[PATCH] afterboot.8: clarify mail aliases handling

2016-07-31 Thread Consus
We have smtpd(8) that now uses file-based aliases table instead of db-based. This table backend requires running $ smtpctl update table aliases instead of $ newaliases in order to fetch changes. However, afterboot(8) still mentions the old way of doing things. --- share/man/man