[patch] Remove unnecessary timerclear in tcpbench

2018-05-11 Thread Nan Xiao
Hi tech@, Following is a trivial modification which removes unnecessary initialization of timeval. I am Sorry if this patch seems a little picky. Index: tcpbench.c === RCS file: /cvs/src/usr.bin/tcpbench/tcpbench.c,v retrieving

kevent, nanosleep: tighten valid range for incoming tv_nsec

2018-05-11 Thread Scott Cheloha
Hi, This fixes timeout input validation for kevent(2) and nanosleep(2). nanosleep() and kqueue_scan() (callee of kevent()) both convert the incoming timespec to a timeval with TIMESPEC_TO_TIMEVAL *before* validating the timeout. This hides invalid tv_nsec values on [-999, 0) and (10,

ldapd: filter rules on attributes

2018-05-11 Thread Reyk Floeter
Hi! (resent to tech@) the following ldapd patch allows filter rules to match on attributes. This can be used to allow users to change their password (and a few other things) but not their entire dn. For example, in ldapd.conf: allow read access to any by self allow write access

Re: [PATCH] [src] usr.sbin/smtpd/smtp.1 - normalise protocol definitions

2018-05-11 Thread Jason McIntyre
On Fri, May 11, 2018 at 12:05:34PM +0100, Raf Czlonka wrote: > Hi all, > > This patch normalises the protocol definitions. > > Regards, > > Raf > i'm ok with this. any objections? jmc > Index: usr.sbin/smtpd/smtp.1 > === > RCS

Re: relayctl friendlier

2018-05-11 Thread Reyk Floeter
eOn Fri, May 11, 2018 at 01:53:58PM +0300, Kapetanakis Giannis wrote: > Hi, > > By default we have: > > # relayctl show > missing argument: > valid commands/args: > summary > hosts > redirects > relays > routers > sessions > > On the other hand: > # relayctl host > usage: relayctl

[PATCH] [src] usr.sbin/smtpd/smtp.1 - normalise protocol definitions

2018-05-11 Thread Raf Czlonka
Hi all, This patch normalises the protocol definitions. Regards, Raf Index: usr.sbin/smtpd/smtp.1 === RCS file: /cvs/src/usr.sbin/smtpd/smtp.1,v retrieving revision 1.5 diff -u -p -r1.5 smtp.1 --- usr.sbin/smtpd/smtp.1 29

relayctl friendlier

2018-05-11 Thread Kapetanakis Giannis
Hi, By default we have: # relayctl show missing argument: valid commands/args: summary hosts redirects relays routers sessions On the other hand: # relayctl host usage: relayctl [-s socket] command [argument ...] # relayctl host dis missing argument: valid commands/args: I

Re: Say no to LARVAL

2018-05-11 Thread Mathieu -
Hello, So I was actually curious about that, obviously posix is silent on the subject. Linux actually returns EBUSY at the dup2 call, which kinda makes sense. Dfly/Netbsd sleep in the dup call to wait for the file to be fully constructed. Linux even has a note in the code where the mention obsd

Re: [patch] adds include statement in dhcpd.conf

2018-05-11 Thread Denis Fondras
Hi Julien, I like the idea but implementation seems a bit naive. Do you have a working example ? While testing, I can notice a bug with line count (my latest hobby :D). $ dhcpd -dn -c /etc/examples/dhcpd.conf /etc/examples/dhcpd.conf line 21: filenameee ^ /etc/examples/dhcpd.conf line