Re: Typo in macro name for ASN

2014-06-09 Thread Stuart Henderson
On 2014/06/08 22:49, Loganaden Velvindron wrote: On Fri, Jun 06, 2014 at 09:47:03AM +0200, Miod Vallat wrote: From Quanah Gibson-Mount: UNKOWN-UNKNOWN Index: crypto/asn1/asn1_err.c Please refrain from sending diffs you obviously didn't test. Miod Compiled and tested: $

mirrorlist file proposal

2014-06-09 Thread misc nick
OpenBSD has one of the simplest and most compact installers out there. However, at the end of the installation you need to have another internet connected OS in order to copy the address of the mirror you wish to use for package management to your freshly installed OpenBSD. Why not include a

Re: [PATCH 9] installboot: malloc/memset = calloc

2014-06-09 Thread Joel Sing
Commited. Thanks. On Sun, 1 Jun 2014, Benjamin Baier wrote: On Sun, 1 Jun 2014 00:57:43 +1000 Joel Sing j...@sing.id.au wrote: In this case I think readability wins. I do not believe that there is a lot to gain from overflow protection given the numbers used in these calculations are

Re: mirrorlist file proposal

2014-06-09 Thread Jean-Philippe Ouellet
Eww... See distrib/notes/mirrors and installpath from pkg.conf(5).

ifstated(8) improvement

2014-06-09 Thread Giancarlo Razzolini
Hi tech, I've been using ifstated for years now for failover my links and I've developed quite some tools on top of it. But, I've recently reached a cornerstone. I've developed a series of scripts that are called with the run argument on the init of each state that perform a series of tasks.

Re: ifstated(8) improvement

2014-06-09 Thread sven falempin
On Mon, Jun 9, 2014 at 10:38 AM, Giancarlo Razzolini grazzol...@gmail.com wrote: Hi tech, I've been using ifstated for years now for failover my links and I've developed quite some tools on top of it. But, I've recently reached a cornerstone. I've developed a series of scripts that are

Re: ifstated(8) improvement

2014-06-09 Thread Giancarlo Razzolini
Em 09-06-2014 12:03, sven falempin escreveu: ifstated is a cool FSM emgine for handling the carp problems, for more complex need , instead of hacking this not complete FSM engine, i would just used another software. The last time, i just use plain perl script, because it was convenient and

Re: ifstated(8) improvement

2014-06-09 Thread sven falempin
On Mon, Jun 9, 2014 at 11:17 AM, Giancarlo Razzolini grazzol...@gmail.com wrote: Em 09-06-2014 12:03, sven falempin escreveu: ifstated is a cool FSM emgine for handling the carp problems, for more complex need , instead of hacking this not complete FSM engine, i would just used another

Re: Fix ia64 cross-gcc

2014-06-09 Thread Paul Irofti
On Mon, May 26, 2014 at 06:31:45PM +0200, Tobias Ulmer wrote: I want to experiment with building some simple efi binaries. This diff unbreaks make -f Makefile.cross TARGET=ia64 cross-gcc OK? Index: sys/arch/ia64/Makefile ===

Re: ifstated(8) improvement

2014-06-09 Thread Giancarlo Razzolini
Em 09-06-2014 12:25, sven falempin escreveu: Detecting bad network is problematic, i try to access external service for this, dns and tcp, this can be done inside ifstated. Do this already, in the same and different ways. It all depends on what's available for network failure detection on the

fsck_msdos: off by one for FAT12

2014-06-09 Thread Tobias Stoeckmann
Hi, our guard pages just told me that writefat is vulnerable to an off by one for FAT12 filesystems. They shouldn't be that common anymore, but better be safe than sorry. The diff looks confusing at first, but this default-block is just split into two cluster blocks, as it's done in readfat

Re: fsck_msdos: off by one for FAT12

2014-06-09 Thread Tobias Stoeckmann
On Mon, Jun 09, 2014 at 09:16:42PM +0200, Tobias Stoeckmann wrote: + cl++; [...] + *p |= (u_char)(fat[cl + 1].next 4); + *p++ = (u_char)(fat[cl + 1].next 4); And here the correct diff, cl + 1 must not be done after cl++ ... Index:

Re: LibreSSL: is there any reason to keep opaque_prf_input?

2014-06-09 Thread Miod Vallat
Hello, I just noticed r1.44 to t1_lib.c. I'm not sure that auditing opaque_prf_input is a good use of anyone's time -- I think it might be better to just run unifdef -U TLSEXT_TYPE_opaque_prf_input and be done with it. Here's the history of opaque_prf_input as I understand it: - In

Re: new OpenSSL flaws

2014-06-09 Thread Steven Chamberlain
Alexander, I'd like to thank you for taking the time to answer Theo's questions, the further advice you've given here, for your patience and the work that you do overall. Regards, -- Steven Chamberlain ste...@pyro.eu.org

increase netcat's buffer...

2014-06-09 Thread John-Mark Gurney
So, I was using nc (on FreeBSD) to image an HD over the network and it was consuming much cpu. It turns out that the buffer used by netcat is only 2k in size, though the buffer on the stack is 16k. This patch increased plan to use the entire buffer: --- netcat.obsd.c.orig 2014-05-19

Re: increase netcat's buffer...

2014-06-09 Thread Ted Unangst
On Mon, Jun 09, 2014 at 20:12, John-Mark Gurney wrote: A better patch is probably the following which also increases the size of the buffer to at least 64k: Agreed.

Re: increase netcat's buffer...

2014-06-09 Thread Theo de Raadt
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 syncronous. It will read as much as it can get, then it will do an atomic write operation to flush the buffer out the other way. If