Flag to set from address in mail(1)

2015-01-03 Thread martin
Since the ability to pass arbitrary arguments to sendmail has been removed from mail(1), I have added a variable and flag to pass a from address to sendmail. I considered making mail take the same arguments for this as it would have when it was just passing onto sendmail but decided against that b

ntpd: be more verbose when logging privsep errors

2015-01-03 Thread Brent Cook
From: Brent Cook The idea here is to make it easier for a sysadmin to diagnose a privilege separation path problem without looking at the source code. Otherwise, privsep failers are pretty cryptic. Maybe its better to make fatal() variadic instead? --- src/usr.sbin/ntpd/ntp.c | 13 +

ntpd: do not allow privsep user to be a privileged user

2015-01-03 Thread Brent Cook
From: Brent Cook Maybe these two checks are redundant. OpenNTPD-portable lets one configure the built-in privilege separation username. Thus, you can potentially configure that user to be root as well. --- src/usr.sbin/ntpd/ntp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/usr.

Re: disk quotas bug fix [was: quotas grace period "none" right away]

2015-01-03 Thread Boris Goldberg
Hello Otto, Friday, January 2, 2015, 4:16:50 PM, you wrote: OM> On Fri, Jan 02, 2015 at 03:28:46PM -0600, Boris Goldberg wrote: >> What about our second patch? OM> I'd rather stay in line with FreeBSD and document quoaoff/quotaon is OM> needed for the new grace period to take effect. OM> h

mail(1) and chdir command

2015-01-03 Thread Kaspars Bankovskis
Due to the order in commands table, "c" maps to "copy", not "chdir" as man page says. "cd" and "ch" work instead. Two alternative fixes: either man page or the order of commands - leaving for you to decide. IMHO better to update man page than muscle memory of old time users. Index: mail.1

Re: httpd: multiple addresses for one server

2015-01-03 Thread Reyk Floeter
On Sat, Jan 03, 2015 at 05:19:16PM +0100, Reyk Floeter wrote: > My tests show that memory usage is not the problem but that there's > indeed a problem with the pre-opened file descriptors for servers; > something that is not necessary with aliases. A simple fix will follow. > Here is a fix for th

Patch for mail(1) man page

2015-01-03 Thread trondd
Just a small patch to document the '=' command. Tim. Index: mail.1 === RCS file: /cvs/src/usr.bin/mail/mail.1,v retrieving revision 1.70 diff -u -p -r1.70 mail.1 --- mail.1 16 Dec 2014 18:37:17 - 1.70 +++ mail.1 3

httpd directory listing not properly encoded.

2015-01-03 Thread Remco
I think that the directory listing generated by httpd doesn't properly encode strings that are taken from C-variables. (function "server_file_index" in server_file.c) e.g., filenames with spaces, or odd characters, produce non-functioning links. I used the following directory structure to test:

sendsyslog failure logging

2015-01-03 Thread Alexander Bluhm
Hi, My goal is to make logging via syslog reliable. At least I want to see when a message gets lost. So my idea is to write a kernel log message if sendsyslog(2) cannot deliver a message. Then you see the problem on the console and in the dmesg buffer. If syslogd comes back later, you will als

Re: httpd: multiple addresses for one server

2015-01-03 Thread Reyk Floeter
On Sat, Jan 03, 2015 at 04:40:19PM +0100, Christopher Zimmermann wrote: > Hi, > > > On Sat, 3 Jan 2015 14:42:18 +0100 Reyk Floeter wrote: > > > On Thu, Jan 01, 2015 at 11:54:46PM -0500, Geoff Steckel wrote: > > > Is there any way todo the equivalent of: > > > > > > server "an.example.com" > >

Re: httpd: multiple addresses for one server

2015-01-03 Thread Christopher Zimmermann
Hi, On Sat, 3 Jan 2015 14:42:18 +0100 Reyk Floeter wrote: > On Thu, Jan 01, 2015 at 11:54:46PM -0500, Geoff Steckel wrote: > > Is there any way todo the equivalent of: > > > > server "an.example.com" > > listen on 192.168.2.99 > > listen on 2001.fefe.1.1::99 > > I used "include" direc

Re: httpd: multiple addresses for one server

2015-01-03 Thread Reyk Floeter
On Thu, Jan 01, 2015 at 11:54:46PM -0500, Geoff Steckel wrote: > Is there any way todo the equivalent of: > > server "an.example.com" > listen on 192.168.2.99 > listen on 2001.fefe.1.1::99 > > ?? > It appears that the code in parse.y explicitly forbids this > and the data structures for a

Re: Sort APs by signal strength

2015-01-03 Thread Martin Pieuchot
On 03/01/15(Sat) 12:26, Stefan Sperling wrote: > On Fri, Jan 02, 2015 at 09:02:53PM +0100, Simon Nicolussi wrote: > > Hello, > > > > 31C3 had lots of access points sharing a network ID. Coming up with an > > AWK script to determine the network with the best coverage is easy, but > > still harder t

Re: Sort APs by signal strength

2015-01-03 Thread Stefan Sperling
On Fri, Jan 02, 2015 at 09:02:53PM +0100, Simon Nicolussi wrote: > Hello, > > 31C3 had lots of access points sharing a network ID. Coming up with an > AWK script to determine the network with the best coverage is easy, but > still harder than simply choosing the first one that ifconfig iwn0 scan >