dhclient(8): fix segfault if calloc()/strdup() return NULL

2012-12-10 Thread Lawrence Teo
There are a number of calloc() and strdup() calls in the apply_defaults() and clone_lease() functions whose return values are not checked. If they happen to return NULL, dhclient will segfault. This diff checks their return values and does some cleanup if they return NULL. The diff also ensures

Re: pkill long format failure

2012-12-10 Thread Todd C. Miller
On Sun, 09 Dec 2012 00:04:57 +0100, Alexander Hall wrote: > This diff follows your line, but allows *action to return match, error > or nomatch, handled appropriately by the main loop. Also make the same > changes to killact(). > > I have yet to make it fail my tests. Makes sense? OK? Looks good

Re: PATCH: Disengaged mode for ThinkPad laptops

2012-12-10 Thread Vadim Zhukov
2012/12/10 Christian Schulte : > Am 12/10/12 05:00, schrieb Vadim Zhukov: >> 10.12.2012 1:43 пользователь "Christian Schulte" написал: >>> >>> Am 12/09/12 20:58, schrieb Vadim Zhukov: Hello all. This is a bit improved version of the patch showed up on tech@ in... er-r-r... don'

Re: [PATCH] mlockall() problem in OpenBSD 5.2

2012-12-10 Thread Gerhard Roth
On Sun, 09 Dec 2012 00:26:35 +0100 Ariane van der Steldt wrote: > On 11/09/12 08:56, Gerhard Roth wrote: > > On Thu, 08 Nov 2012 16:22:41 -0500 > > Ted Unangst wrote: > >> On Thu, Nov 08, 2012 at 13:34, Ilya Bakulin wrote: > >> > >>> The problem seems to be in uvm_map_pageable_all() function > >