lex(1): warning with -Wmisleading-indentation in generated scanner

2021-05-04 Thread Nick Gasson
Hi, When I build my program with the lex(1) in OpenBSD I get the following warning: src/lexer.c:2415:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return yy_is_jam ? 0 : yy_current_state; ^

systat(1): improve parsing of delay value

2021-01-25 Thread Nick Gasson
Hi, I incorrectly ran "systat netstat -N" instead of "systat -N netstat" and got confused why it wasn't resolving host names. The -N gets parsed with atof to a 0s delay that is then clamped to 5s. The patch below instead prints an error if the delay cannot be parsed. I think the <= 0 case should

Re: ftp(1): add SOCKS proxy support

2021-01-02 Thread Nick Gasson
Hi Steffen, On 11/27/20 05:59 AM, Steffen Nurpmeso wrote: > Nick Gasson wrote in > <87im9srza8@bertha.nickg.me.uk>: > |Hi, > | > |I often need to go through a SOCKS proxy to access certain sites. The > |diff below adds SOCKS5 support to ftp(1) for HTTP transfer

ftp(1): add SOCKS proxy support

2020-11-26 Thread Nick Gasson
Hi, I often need to go through a SOCKS proxy to access certain sites. The diff below adds SOCKS5 support to ftp(1) for HTTP transfers, similar to curl(1). Enabled when http_proxy is set to a socks5:// URL. Also fixes two existing memory leaks: proxyurl (set to NULL on line 646 before freeing)

smtpd: document "pki" option for relay delivery in smtpd.conf(5)

2020-09-13 Thread Nick Gasson
Hi, I struggled a bit to configure smtpd to relay to a remote server that requires SSL client certificates. The solution is to just add a "pki host.example.org" option, but "pki" is not listed as a valid option for the relay delivery method, even though the parser accepts it. Index: smtpd.conf.5