From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60176C433EF for ; Thu, 2 Sep 2021 22:44:52 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D701B600EF for ; Thu, 2 Sep 2021 22:44:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D701B600EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D8FE834E9; Fri, 3 Sep 2021 00:43:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="bjEFq4ER"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DC23834FC; Fri, 3 Sep 2021 00:43:08 +0200 (CEST) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BF6628353B for ; Fri, 3 Sep 2021 00:43:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id c19so3055099qte.7 for ; Thu, 02 Sep 2021 15:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1TWdm9twMkRaJXEXI7rdkDq9Yrf8Gwy7sXGyfPHLEIQ=; b=bjEFq4ERMHuUXuYhktngckYcc3blIC9p2LIECcVo7WjWoqKpH/AS6lYZdwnWJrCukk kiExRLrw4jHlRogOcLvFWg2SYxfPobCsHbsruGCGSIR8ZSWfwBSB1TnV8xJ5h1Yp7sOG amt/HLdMPwhsXPJbqo/pPMdG9O0DA5r9VrPFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1TWdm9twMkRaJXEXI7rdkDq9Yrf8Gwy7sXGyfPHLEIQ=; b=iBsywQPvO0E7CX8iV72wRe8iixQyoq/QgJczpj5VNP8uFn6qnDjB4X6ZA1MmNmfwYl WJ/t8Xus5tJr95yDlDbGAVl+1UZ2UIIHIj4reTCdiivpMlXUeoPcsguF/5Tmm6vQ9Vwi RMuv013bMPjhhMjMMdZyAp7g1znZ7Qovd+9/1o1hsRwqGKTkmO4wJx0nWGqTvdHyQC73 ZsdqnorT00dF2OEgOwsFaqZnX77N9iSXXfzzyeEIonucJpf/0ewXoOPDcS1thegZrH2l wE0rChi9MhyikOVsKB9GC0BCbnDb4gTWz49RCvba3jIGpeQe/P5jp3kVa0vhIELCdLD3 iL0A== X-Gm-Message-State: AOAM531ki6n/kCmeyq6i77dXIJ6Ktq8qkBc+GW29m/O1ZC8TM9ovlmIr mQtwfAmM2TGYOt8OGsmGoXe7Yg== X-Google-Smtp-Source: ABdhPJxaR/fkghThvaRKag3N8uZR3ScfP68LRLY/M9cT0oMxnrZMtoMvc0I8TY3pM2T6BDqkLaD+Qw== X-Received: by 2002:a05:622a:452:: with SMTP id o18mr781047qtx.266.1630622580416; Thu, 02 Sep 2021 15:43:00 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-95b1-4c42-35f4-d991.res6.spectrum.com. [2603:6081:7b01:cbda:95b1:4c42:35f4:d991]) by smtp.gmail.com with ESMTPSA id k186sm2504972qkd.47.2021.09.02.15.42.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Sep 2021 15:42:59 -0700 (PDT) Date: Thu, 2 Sep 2021 18:42:57 -0400 From: Tom Rini To: Thibault Ferrante Cc: u-boot@lists.denx.de, wd@denx.de, joe.hershberger@ni.com, hws@denx.de, alex.kiernan@gmail.com, lg@denx.de, Thibault Ferrante , Martin =?iso-8859-1?Q?Hundeb=F8ll?= Subject: Re: [PATCH 1/1] tools: env: Handle shorter read calls Message-ID: <20210902224257.GF858@bill-the-cat> References: <20210824152950.919452-1-thibault.ferrante@gmail.com> <20210824152950.919452-2-thibault.ferrante@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UabkESu+7Q0ihT7l" Content-Disposition: inline In-Reply-To: <20210824152950.919452-2-thibault.ferrante@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --UabkESu+7Q0ihT7l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 24, 2021 at 05:29:50PM +0200, Thibault Ferrante wrote: > On some cases, the actual number of bytes read can be shorter > than what was requested. This can be handled gracefully by > taking this difference into account instead of exiting. >=20 > Signed-off-by: Thibault Ferrante Applied to u-boot/next, thanks! --=20 Tom --UabkESu+7Q0ihT7l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmExU3EACgkQFHw5/5Y0 tywnZQwAhrjwGxsGCUBBJv77UT5UdTB5Gz7CYtn2H9kBih0+kUO19OIoZ3rwYQwm +ThWYxbksBUHp+KkFD1NFAfV8nQbwzaky0gKCyn8eVr++9xeZSPIDMuaSzdvEq6W u93s4N4uppb6gGIE8Az1BM093ZNHnxG3i1kkjrX4Xe0k+p6oRRCIAEu1Jvt11HGz hOF8Jo/zVh/XoOSpWTNvp/O+zRH1ZPYOYKY3GxsXMrOZ4vBQ8NJbIEoGebzS4ZPl Yt/MiC4Vec4/XXBEcO7275f1APXgpJTRZLpWRdJIVa/XiKhOYGicFpWLiSogNqY5 A53KQ3IT4hWQMc59FVp4PP+mMXy5mM8+cws2Njwufit1fFZkG5iKa92N8ISNmoXg XUHK7w02gjAcaZfY1QKxVFJtQ0ZFB26rkwaVO0GwKJrqZg7wUDEeBBFhGZF02SgX 6kXyYaO1S5d2P80akc7Fu+AJP+BTSHRbBd2kXnUOohEmOD+fMjT8blw1loyQdOh8 d2awB0xk =rq+A -----END PGP SIGNATURE----- --UabkESu+7Q0ihT7l--