arm64/machdep.c: strncpy+overlap - "boot> boot -s" behaviour

2018-03-07 Thread Artturi Alm
Hi, another user mentioned on irc about issue w/"boot -s" not working on rpi3. diff below fixes secondary the strncpy() w/dst==src, and also adds blank line after the function which does the correct strncpy. -Artturi diff --git sys/arch/arm64/arm64/machdep.c sys/arch/arm64/arm64/machdep.c

Re: [patch] spamd-setup.c

2018-03-07 Thread Edgar Pettijohn
On 03/07/18 18:55, William Ahern wrote: On Wed, Mar 07, 2018 at 05:17:59PM -0600, Edgar Pettijohn wrote: This looks like a good place for reallocarray. Yes? Index: spamd-setup.c === RCS file:

Re: [patch] spamd-setup.c

2018-03-07 Thread William Ahern
On Wed, Mar 07, 2018 at 05:17:59PM -0600, Edgar Pettijohn wrote: > This looks like a good place for reallocarray. Yes? > > Index: spamd-setup.c > === > RCS file: /cvs/src/libexec/spamd-setup/spamd-setup.c,v > retrieving revision 1.50

Re: close filedescriptors of children

2018-03-07 Thread Damien Miller
On Wed, 7 Mar 2018, Gerhard Roth wrote: > Below is an updated patch that includes proc.c of switchd and vmd. > It also passes the 'debug' flag to proc_init() so that it won't touch > std* in that case. FWIW sshd unconditionally clobbers stdin and stdout and will also clobber stderr if the debug

[patch] spamd-setup.c

2018-03-07 Thread Edgar Pettijohn
This looks like a good place for reallocarray. Yes? Index: spamd-setup.c === RCS file: /cvs/src/libexec/spamd-setup/spamd-setup.c,v retrieving revision 1.50 diff -u -p -u -r1.50 spamd-setup.c --- spamd-setup.c7 Jul 2017 00:10:15

Re: httpd: single FastCGI script handling all requests

2018-03-07 Thread Diogo Galvao
On 03/06/18 16:39, Diogo Galvao wrote: The following patch makes it possible to handle all FastCGI requests with a single script so it can route clean URLs itself. Was it already possible some other way? It's already possible to achieve the same result with the root option: server

Re: httpd: single FastCGI script handling all requests

2018-03-07 Thread Diogo Galvao
On 03/07/18 05:36, Hiltjo Posthuma wrote: Hi, I wonder if it can't be done simpler with some wrapper program/script that sets $SCRIPT_FILENAME to your router PHP script beforehand? It it would then it would require no changes to httpd and be more useful in other cases aswell. Hi. Thanks

Re: handle updates via Adj-RIB-Out

2018-03-07 Thread Claudio Jeker
On Fri, Mar 02, 2018 at 04:55:23PM +0100, Claudio Jeker wrote: > On Wed, Feb 07, 2018 at 05:52:09AM +0100, Claudio Jeker wrote: > > This diff changes the way bgpd does updates. Instead of having its own > > special update queue/tree it uses a regular RIB (Adj-RIB-Out) to store all > > updates to

Re: slaacd(8): RFC 7136

2018-03-07 Thread Peter Hessler
yup, makes sense. OK On 2018 Mar 07 (Wed) at 18:29:07 +0100 (+0100), Florian Obser wrote: :RFC 7136 clarifies that the "u" and "g" bits are only significant when :IPv6 unicast interface identifiers are derived from IEEE link-layer :addresses. In all other cases the interface identifier should

slaacd(8): RFC 7136

2018-03-07 Thread Florian Obser
RFC 7136 clarifies that the "u" and "g" bits are only significant when IPv6 unicast interface identifiers are derived from IEEE link-layer addresses. In all other cases the interface identifier should be treated as an opaque value. Accordingly stop fiddling with the bits for privacy addresses.

Re: close filedescriptors of children

2018-03-07 Thread Mike Belopuhov
On 7 March 2018 at 17:27, Gerhard Roth wrote: > > On Wed, 7 Mar 2018 17:20:06 +0100 Mike Belopuhov wrote: > > On 7 March 2018 at 17:01, Gerhard Roth wrote: > > > > > > Hi Benno, > > > > > > thanks for your reply. > > > > > > On

Re: close filedescriptors of children

2018-03-07 Thread Gerhard Roth
On Wed, 7 Mar 2018 17:20:06 +0100 Mike Belopuhov wrote: > On 7 March 2018 at 17:01, Gerhard Roth wrote: > > > > Hi Benno, > > > > thanks for your reply. > > > > On Wed, 7 Mar 2018 15:22:28 +0100 Sebastian Benoit > wrote: > > > Hi,

Re: close filedescriptors of children

2018-03-07 Thread Mike Belopuhov
On 7 March 2018 at 17:01, Gerhard Roth wrote: > > Hi Benno, > > thanks for your reply. > > On Wed, 7 Mar 2018 15:22:28 +0100 Sebastian Benoit wrote: > > Hi, > > > > switchd and vmd use the same proc.c,and should stay in sync. > > Ack. I missed them. >

Re: close filedescriptors of children

2018-03-07 Thread Gerhard Roth
Hi Benno, thanks for your reply. On Wed, 7 Mar 2018 15:22:28 +0100 Sebastian Benoit wrote: > Hi, > > switchd and vmd use the same proc.c,and should stay in sync. Ack. I missed them. > > Also, this breaks -dvv (i.e. debug output when running inthe foreground), > at least

Re: close filedescriptors of children

2018-03-07 Thread Sebastian Benoit
Hi, switchd and vmd use the same proc.c,and should stay in sync. Also, this breaks -dvv (i.e. debug output when running inthe foreground), at least for relayd. /Benno Gerhard Roth(gerhard_r...@genua.de) on 2018.03.07 13:43:05 +0100: > Hi, > > proc_init() is done before daemon() and for the

close filedescriptors of children

2018-03-07 Thread Gerhard Roth
Hi, proc_init() is done before daemon() and for the child processes of httpd, relayd and snmpd() this function never returns. That means that the children inherit stdin, stdout, and stderr of the caller and never close them. This fix this, proc_init() should map these filedes to /dev/null for a

Re: httpd: single FastCGI script handling all requests

2018-03-07 Thread Hiltjo Posthuma
On Tue, Mar 06, 2018 at 04:39:04PM -0300, Diogo Galvao wrote: > The following patch makes it possible to handle all FastCGI requests > with a single script so it can route clean URLs itself. > > Was it already possible some other way? > > And, regardless of this patch, is it even a feature you'd