From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755752AbYEFDJH (ORCPT ); Mon, 5 May 2008 23:09:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760217AbYEFDIo (ORCPT ); Mon, 5 May 2008 23:08:44 -0400 Received: from linux-m68k.xs4all.nl ([82.95.193.92]:59432 "EHLO scrub.xs4all.nl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758166AbYEFDIn (ORCPT ); Mon, 5 May 2008 23:08:43 -0400 X-Greylist: delayed 758 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 May 2008 23:08:43 EDT Date: Tue, 6 May 2008 05:08:40 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@scrub.home To: Sam Ravnborg cc: linux-kbuild , LKML Subject: Re: [PATCH 2/2] kconfig: make oldconfig less chatty and clean up conf.c In-Reply-To: <20080504185950.GC23063@uranus.ravnborg.org> Message-ID: References: <20080502204729.GA6534@uranus.ravnborg.org> <20080504185737.GA23063@uranus.ravnborg.org> <20080504185950.GC23063@uranus.ravnborg.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, 4 May 2008, Sam Ravnborg wrote: > We now check for valid stadin in both cases and this > may break a script here and there. I strongly disagree with this, please preserve the old behaviour. It took a while to work out the current behaviour. Only silentoldconfig checks for stdin because it's used as hook during kbuild to verify the config. For all other interactive targets the user has to know what he's doing, e.g. it's valid to do "yes '' | make oldconfig". > - switch (input_mode) { > - case set_no: name = "allno.config"; break; > - case set_mod: name = "allmod.config"; break; > - case set_yes: name = "allyes.config"; break; > - case set_random: name = "allrandom.config"; break; > - default: break; > - } > - if (!stat(name, &tmpstat)) > - conf_read_simple(name, S_DEF_USER); > - else if (!stat("all.config", &tmpstat)) > - conf_read_simple("all.config", S_DEF_USER); > - break; > - default: > - break; > } This isn't yet in aconf.c. bye, Roman