Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205Ab3JaHFR (ORCPT ); Thu, 31 Oct 2013 03:05:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12149 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003Ab3JaHFP (ORCPT ); Thu, 31 Oct 2013 03:05:15 -0400 Date: Thu, 31 Oct 2013 12:35:05 +0530 (IST) From: P J P X-X-Sender: pjp@javelin.pnq.redhat.com To: Andrew Morton cc: linux-kernel@vger.kernel.org Subject: Re: [Patch] Read CONFIG_RD_ variables for initramfs compression In-Reply-To: <20131030150521.ff3fd577a6e506e4278db48c@linux-foundation.org> Message-ID: References: <20131029151507.8f63dad8e7525e33431d9596@linux-foundation.org> <20131030150521.ff3fd577a6e506e4278db48c@linux-foundation.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1886419531-1383203113=:23774" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6902 Lines: 127 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1886419531-1383203113=:23774 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello Andrew, +-- On Wed, 30 Oct 2013, Andrew Morton wrote --+ | Isn't there some convenient way of testing for the presence of an | executable in $PATH? | | The shell-builtin `which' seems to dtrt: True. Please see an updated patch attached herein. Thank you. -- Prasad J Pandit / Red Hat Security Response Team --0-1886419531-1383203113=:23774 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=0001-Read-CONFIG_RD_-variables-for-initramfs-compression.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-Read-CONFIG_RD_-variables-for-initramfs-compression.patch RnJvbSAzNTI3ODFmZDI4NDZjNTRlOTJhZTBjMzdkZDk3MmRjNWZjZGZiNjk1 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjA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g ICAgICAgICAgJiYgWyAteCAiYHdoaWNoIGd6aXAgMj4gL2Rldi9udWxsYCIg XSBcDQorICAgICAgICAgICAgICAgICYmIGNvbXByPSJnemlwIC1uIC05IC1m Ig0KKwkJZWNobyAiJG91dHB1dF9maWxlIiB8IGdyZXAgLXEgIlwuYnoyJCIg XA0KKyAgICAgICAgICAgICAgICAmJiBbIC14ICJgd2hpY2ggYnppcDIgMj4g L2Rldi9udWxsYCIgXSBcDQorICAgICAgICAgICAgICAgICYmIGNvbXByPSJi emlwMiAtOSAtZiINCisJCWVjaG8gIiRvdXRwdXRfZmlsZSIgfCBncmVwIC1x ICJcLmx6bWEkIiBcDQorICAgICAgICAgICAgICAgICYmIFsgLXggImB3aGlj aCBsem1hIDI+IC9kZXYvbnVsbGAiIF0gXA0KKyAgICAgICAgICAgICAgICAm JiBjb21wcj0ibHptYSAtOSAtZiINCisJCWVjaG8gIiRvdXRwdXRfZmlsZSIg fCBncmVwIC1xICJcLnh6JCIgXA0KKyAgICAgICAgICAgICAgICAmJiBbIC14 ICJgd2hpY2ggeHogMj4gL2Rldi9udWxsYCIgXSBcDQorICAgICAgICAgICAg ICAgICYmIGNvbXByPSJ4eiAtLWNoZWNrPWNyYzMyIC0tbHptYTI9ZGljdD0x TWlCIg0KKwkJZWNobyAiJG91dHB1dF9maWxlIiB8IGdyZXAgLXEgIlwubHpv JCIgXA0KKyAgICAgICAgICAgICAgICAmJiBbIC14ICJgd2hpY2ggbHpvcCAy PiAvZGV2L251bGxgIiBdIFwNCisgICAgICAgICAgICAgICAgJiYgY29tcHI9 Imx6b3AgLTkgLWYiDQorCQllY2hvICIkb3V0cHV0X2ZpbGUiIHwgZ3JlcCAt cSAiXC5sejQkIiBcDQorICAgICAgICAgICAgICAgICYmIFsgLXggImB3aGlj aCBsejQgMj4gL2Rldi9udWxsYCIgXSBcDQorICAgICAgICAgICAgICAgICYm IGNvbXByPSJsejQgLTkgLWYiDQogCQllY2hvICIkb3V0cHV0X2ZpbGUi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mc19kYXRhLmNwaW8uZA0KIAkkKGNhbGwgaWZfY2hhbmdlZCxpbml0ZnMp DQotDQotLSANCjEuOC4zLjENCg0K --0-1886419531-1383203113=:23774-- -- 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/