Re: [PATCH] doas authentication type

2015-08-26 Thread Renaud Allard
On 08/26/2015 06:39 PM, Michael Reed wrote: Hi Renauld, On 08/26/15 09:38, Renaud Allard wrote: I rewrote a little bit the patch to remove a small kind-of typo in the manpage and remove too long lines. So with this patch, you add the user the right to choose the authentication style and admin

Re: strtonum for grep

2015-08-26 Thread Philip Guenther
On Tue, Aug 25, 2015 at 5:31 PM, David Gwynne wrote: > if i pass "1filename" as an argument to -A, -B, or -C, it's not out > of range, it's not a number. > > this converts the arg processing to use strtonum so the errors are > better. > > however, maybe the errors are standardised and this breaks

Re: [patch] httpd: fcgi/PATH_INFO not handled correctly

2015-08-26 Thread Kyle Thompson
This patch fixes the problem I had previously that I mentioned on the Github issues. Kyle On 8/26/2015 1:23 PM, Denis Fondras wrote: Hello, While using httpd together uwsgi and Flask, I noticed that GET requests to / returned 404. The same setup with nginx was returning 200. The culprit is t

small uvm cleanup

2015-08-26 Thread Mark Kettenis
miod@ added this back in 2002 (rev 1.36): Back out a few more uvm changes, especially wrt swap usage. This unbreaks m68k m88k sparc and perhaps others, which eventually froze when hitting swap. Tested by various people on various platforms. ok art@ I think it is fairly safe to assume it

cd.4 new naming

2015-08-26 Thread Martijn van Duren
Hello tech@, When reading cd.4 and comparing it to sys/cdio.h I see that CDIOREADTOCENTRYS is an alias to CDIOREADTOCENTRIES, while cd.4 still points to CDIOREADTOCENTRYS. Both definitions are used in tree: $ grep -R CDIOREADTOCENTRIES /usr/src/{{,usr.}{s,}bin,sys} /usr/src/sbin/mount_udf/mou

[patch] httpd: fcgi/PATH_INFO not handled correctly

2015-08-26 Thread Denis Fondras
Hello, While using httpd together uwsgi and Flask, I noticed that GET requests to / returned 404. The same setup with nginx was returning 200. The culprit is that PATH_INFO is not set when REQUEST_URI is /. The following patch correctly set PATH_INFO in every case. Denis Index: httpd.c ===

Re: [PATCH] doas authentication type

2015-08-26 Thread Michael Reed
Hi Renauld, On 08/26/15 09:38, Renaud Allard wrote: > I rewrote a little bit the patch to remove a small kind-of typo in the > manpage and remove too long lines. > So with this patch, you add the user the right to choose the authentication > style and administratively, in login.conf, you can res

Re: the very first step towards MULTIPROCESSOR friendly PF

2015-08-26 Thread Mark Kettenis
> Date: Wed, 26 Aug 2015 17:30:14 +0200 > From: Alexandr Nedvedicky > > Hello, > > I'm not sure I got everything right in Calgary. So this patch should > roughly illustrates how I think we should start moving forward to > make PF MULTIPROCESSOR friendly. It's quite likely my proposal/way > is co

the very first step towards MULTIPROCESSOR friendly PF

2015-08-26 Thread Alexandr Nedvedicky
Hello, I'm not sure I got everything right in Calgary. So this patch should roughly illustrates how I think we should start moving forward to make PF MULTIPROCESSOR friendly. It's quite likely my proposal/way is completely off, I'll be happy if you put me back to ground. The brief summary of what

Re: [PATCH] doas authentication type

2015-08-26 Thread Renaud Allard
I rewrote a little bit the patch to remove a small kind-of typo in the manpage and remove too long lines. So with this patch, you add the user the right to choose the authentication style and administratively, in login.conf, you can restrict it. Any comments? OK? Index: doas.1 ==

Re: doas authentication type

2015-08-26 Thread Alexander Hall
On August 26, 2015 10:21:23 AM GMT+02:00, Renaud Allard wrote: >On 08/26/2015 09:36 AM, Renaud Allard wrote: >> On 08/26/2015 09:26 AM, Gregor Best wrote: >>> On Wed, Aug 26, 2015 at 08:42:31AM +0200, Renaud Allard wrote: [...] +fprintf(stderr, "usage: doas [-ans] [-C config] [-u

Do not create IPv6 connected routes for lo0

2015-08-26 Thread Martin Pieuchot
Diff below makes sure that no connected route is created for loopback/p2p interfaces for linklocal *and* non-linklocal addrs. route(8)'s output will change: -fe80::%lo10001/64 fe80::1%lo10001U 0 0 32768 4 lo10001 fe80::1%lo10001

Re: doas authentication type

2015-08-26 Thread Renaud Allard
On 08/26/2015 09:36 AM, Renaud Allard wrote: On 08/26/2015 09:26 AM, Gregor Best wrote: On Wed, Aug 26, 2015 at 08:42:31AM +0200, Renaud Allard wrote: [...] +fprintf(stderr, "usage: doas [-ans] [-C config] [-u user] command [args]\n"); [...] The usage string should probably be "usage

Re: doas authentication type

2015-08-26 Thread Renaud Allard
On 08/26/2015 09:26 AM, Gregor Best wrote: On Wed, Aug 26, 2015 at 08:42:31AM +0200, Renaud Allard wrote: [...] + fprintf(stderr, "usage: doas [-ans] [-C config] [-u user] command [args]\n"); [...] The usage string should probably be "usage: doas [-ns] [-a style] [-C config] [-u use

Re: fortune: remove OK_TO_WRITE_DISK ifdef + some teaks

2015-08-26 Thread Doug Hogan
On Wed, Aug 26, 2015 at 09:15:13AM +0200, Sebastien Marie wrote: > The following patch remove #ifdef OK_TO_WRITE_DISK which isn't used by > default. > > Additionnally, few disambiguisations suggested by cc(1) are added: > - parentheses around && within || > - explicit braces to avoid ambiguous

Re: doas authentication type

2015-08-26 Thread Gregor Best
On Wed, Aug 26, 2015 at 08:42:31AM +0200, Renaud Allard wrote: > [...] > + fprintf(stderr, "usage: doas [-ans] [-C config] [-u user] command > [args]\n"); > [...] The usage string should probably be "usage: doas [-ns] [-a style] [-C config] [-u user] command [args]" and the new option sho

fortune: remove OK_TO_WRITE_DISK ifdef + some teaks

2015-08-26 Thread Sebastien Marie
Hi, The following patch remove #ifdef OK_TO_WRITE_DISK which isn't used by default. Additionnally, few disambiguisations suggested by cc(1) are added: - parentheses around && within || - explicit braces to avoid ambiguous 'else' Comments ? OK ? -- Sebastien Marie Index: fortune.c =