Fix overflow handling in dd(1)

2014-06-13 Thread William Orr
This diff fixes the overflow handling in dd(1). Before, if provided an argument of SIZE_T_MAX, dd(1) would exit with dd: count: Undefined error: 0 since strtoul(3) doesn't set errno when its argument is equal to ULONG_MAX. Now, dd(1) handles SIZE_T_MAX gracefully. Index: args.c

Re: ftp(1) User-Agent

2014-06-13 Thread Lawrence Teo
On Thu, Jun 12, 2014 at 06:32:00PM +0200, Alexander Hall wrote: > On June 11, 2014 6:18:19 AM CEST, Lawrence Teo wrote: > >This diff allows ftp(1) to change the User-Agent for HTTP(S) URL > >requests via the FTPUSERAGENT environment variable (personally I prefer > >HTTPUSERAGENT but FTPUSERAGENT i

Re: increase netcat's buffer...

2014-06-13 Thread sven falempin
On Fri, Jun 13, 2014 at 7:50 AM, sven falempin wrote: > > > > On Tue, Jun 10, 2014 at 12:45 PM, Ted Unangst wrote: > >> On Mon, Jun 09, 2014 at 21:54, Theo de Raadt wrote: >> >> > A better patch is probably the following which also increases the >> size >> >> > of the buffer to at least 64k: >>

Re: increase netcat's buffer...

2014-06-13 Thread sven falempin
On Tue, Jun 10, 2014 at 12:45 PM, Ted Unangst wrote: > On Mon, Jun 09, 2014 at 21:54, Theo de Raadt wrote: > >> > A better patch is probably the following which also increases the size > >> > of the buffer to at least 64k: > >> > >> Agreed. > > > > One thing to be aware of. That function is sync

[PATCH] Fix typos in getentropy.2

2014-06-13 Thread Piotr Sikora
Hello, it seems that setlogin and name weren't replaced everywhere. I also replaced ".Nm" with ".Fn getentropy" to get the (). Best regards, Piotr Sikora --- lib/libc/sys/getentropy.2-orig Fri Jun 13 10:13:05 2014 +++ lib/libc/sys/getentropy.2 Fri Jun 13 10:20:25 2014 @@ -25,20 +25,19 @@ .