[patch] www/faq/faq6.html ifconfig typo

2016-02-06 Thread Bertrand Janin
Index: faq/faq6.html === RCS file: /cvs/www/faq/faq6.html,v retrieving revision 1.348 diff -u -p -u -r1.348 faq6.html --- faq/faq6.html 4 Feb 2016 23:39:08 - 1.348 +++ faq/faq6.html 6 Feb 2016 13:10:16 - @@ -

httpd: explicit errors on unknown method or missing http version

2014-11-28 Thread Bertrand Janin
Hi, If a client sends a bogus request with an unknown method or no http version string, httpd currently grabs the last error with strerror(), this patch causes it to call server_abort_http() directly with a more explicit error message: Index: server_http.c ==

Re: httpd: don't send error body with HEAD method

2014-11-26 Thread Bertrand Janin
Bertrand Janin wrote : > Philip Guenther wrote : > > On Mon, Nov 24, 2014 at 11:24 AM, Florian Obser wrote: > > ... > > > Since we are probably not supposed to send a "Content-Type" header I > > > think it makes sense to duplicate the httpmsg generating

Re: httpd: don't send error body with HEAD method

2014-11-24 Thread Bertrand Janin
Philip Guenther wrote : > On Mon, Nov 24, 2014 at 11:24 AM, Florian Obser wrote: > ... > > Since we are probably not supposed to send a "Content-Type" header I > > think it makes sense to duplicate the httpmsg generating code in this > > case; > > If a GET of that resource would have a Content-Ty

Re: httpd: don't send error body with HEAD method

2014-11-24 Thread Bertrand Janin
Florian Obser wrote : > On Sun, Nov 23, 2014 at 08:15:47PM -0500, Bertrand Janin wrote: > > Hi, > > > > This patch updates server_abort_http() to only send the body of default http > > error if the method is not HEAD. I first noticed that with curl -v -I which > >

httpd: don't send error body with HEAD method

2014-11-23 Thread Bertrand Janin
Hi, This patch updates server_abort_http() to only send the body of default http error if the method is not HEAD. I first noticed that with curl -v -I which complains about the excess data: * Excess found in a non pipelined read: excess = 397 url = /asd (zero-length body) Index: usr.sbin/h

Re: ksh global PWD env variable

2013-07-21 Thread Bertrand Janin
> I for one don't see a general interest in knowing ones parents potentially > faked wd. Many things can be faked by the parent. One could check if getcwd() and getenv("PWD") resolves to the same directory if this is a concern. Based on the fact that other shells have a different behavior I was c

ksh global PWD env variable

2013-07-21 Thread Bertrand Janin
PWD is considered local in /bin/ksh while it is global in most other shells (ksh93, csh, bash, zsh). In practice, it means calling getenv("PWD") from a child process returns NULL on ksh (and pdksh) unless you export it before hand. I discovered this while using getenv("PWD") to get the parent she

Re: cwm(1) hide borders on maximize

2009-08-31 Thread Bertrand Janin
Bertrand Janin wrote : > With Xinerama enabled, the borders of a maximized window will show up on > all adjacent screens. This patch hides the borders while the window is > maximized. > > Bertrand > > [demime 1.01d removed an attachment of type text/x-diff] And here

cwm(1) hide borders on maximize

2009-08-31 Thread Bertrand Janin
With Xinerama enabled, the borders of a maximized window will show up on all adjacent screens. This patch hides the borders while the window is maximized. Bertrand [demime 1.01d removed an attachment of type text/x-diff]