From: Ewan Mellor Subject: Re: [PATCH][RESEND][vTPM][XM-TEST] echo command string break-up fix Date: Thu, 14 Sep 2006 07:57:58 +0100 Message-ID: <20060914065758.GK19964@leeni.uk.xensource.com> References: <1158091716.21656.0.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1158091716.21656.0.camel@941e-2.watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, Sep 12, 2006 at 04:08:36PM -0400, Stefan Berger wrote: > When redirecting the output of the echo command using '>' on bash, the > output seems to be broken up into multiple write()s (depending on the > version of busybox?). Unfortunately /dev/tpm0 needs to have the complete > command written to in one chunk. The work-around 'echo > file ; > cat file > /dev/tpm0' seems to get around this problem. > The patch also removes a redundant test and error output. > > Signed-off-by: Stefan Berger Applied, thank you. Ewan.