Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932577AbXFEP1e (ORCPT ); Tue, 5 Jun 2007 11:27:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763236AbXFEP11 (ORCPT ); Tue, 5 Jun 2007 11:27:27 -0400 Received: from ozlabs.org ([203.10.76.45]:37492 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756561AbXFEP10 (ORCPT ); Tue, 5 Jun 2007 11:27:26 -0400 Subject: [PATCH 1/6] lguest example launcher fix From: Rusty Russell To: Andrew Morton Cc: lkml - Kernel Mailing List Content-Type: text/plain Date: Wed, 06 Jun 2007 00:55:08 +1000 Message-Id: <1181055308.14054.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 26 "struct option" arrays handed to getopt_long() are supposed to be NULL-terminated. (Another patch added an arg and it finally segv'd). Signed-off-by: Rusty Russell --- Documentation/lguest/lguest.c | 1 + 1 file changed, 1 insertion(+) =================================================================== --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c @@ -930,6 +930,7 @@ static struct option opts[] = { { "tunnet", 1, NULL, 't' }, { "block", 1, NULL, 'b' }, { "initrd", 1, NULL, 'i' }, + { NULL }, }; static void usage(void) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/