Re: C tty/tcsetattrs question

2016-05-27 Thread Manuel Bouyer
On Thu, May 26, 2016 at 07:30:05PM +0200, Manuel Bouyer wrote: > Hello, > I have a GPS device connected to a serial port. It defaults to 9600bps > NMEA messages, but I need to switch it to 4800bps. There are NMEA > commands for this, and I can properly do this using cu(1). > > Now I'm trying to wr

Re: [patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread Alistair Crooks
Thanks for the patch. As far as comments go, there's a general lack of checking return codes(*strchr, *strrchr, strcspn) to make sure they don't fail (both now, when you *absolutely know 100% guaranteed* that it won't fail, and in 10 years time when it does fail due to someone's maintenance, or ca

Re: [patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread 'Timo Buhrmester'
On Fri, May 27, 2016 at 11:58:50AM -0400, Terry Moore wrote: > Malloc() might fail, and you don't check for that in your new path. Right, thanks. I meant to use ftp_malloc(), anyway. > And it's not clear to me how you know that there's a "//" at the strstr() I believe that the chain of events lea

Re: pthread library related

2016-05-27 Thread Charles Cui
Please see my comments inline. 2016-05-26 14:35 GMT-07:00 Christos Zoulas : > On May 26, 2:08pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: pthread library related > > | Hi Christos, > | > |I am studying the pthread libraries in netbsd, and have several > patches > | co

[patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread Timo Buhrmester
The "Location"-Header in a HTTP Redirect used to require a full URL, but as of RFC 7231, relative references are also allowed. ftp(1) does not understand this; the following patch addresses that issue. Comments? diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index d5b13b6..32f0368 10064

Re: makemandb: Error in indexing /usr/pkg/man/man3/libarchive_changes.3

2016-05-27 Thread Abhinav Upadhyay
Hi Edgar, On Fri, May 27, 2016 at 4:18 PM, Edgar Fuß wrote: > On a 6.1_STABLE system, I'm getting > makemandb: Error in indexing /usr/pkg/man/man3/archive_write_filter.3 > makemandb: Error in indexing /usr/pkg/man/man3/libarchive_changes.3 > but the files look OK to me. Just chec

makemandb: Error in indexing /usr/pkg/man/man3/libarchive_changes.3

2016-05-27 Thread Edgar Fuß
On a 6.1_STABLE system, I'm getting makemandb: Error in indexing /usr/pkg/man/man3/archive_write_filter.3 makemandb: Error in indexing /usr/pkg/man/man3/libarchive_changes.3 but the files look OK to me.

Re: C tty/tcsetattrs question

2016-05-27 Thread Manuel Bouyer
On Fri, May 27, 2016 at 03:37:03AM +, David Holland wrote: > On Thu, May 26, 2016 at 07:30:05PM +0200, Manuel Bouyer wrote: > > I have a GPS device connected to a serial port. It defaults to 9600bps > > NMEA messages, but I need to switch it to 4800bps. There are NMEA > > commands for this,