From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jC7Fk-0002Y0-2A for barebox@lists.infradead.org; Wed, 11 Mar 2020 19:42:53 +0000 Received: by mail-oi1-x242.google.com with SMTP id w13so3105826oih.4 for ; Wed, 11 Mar 2020 12:42:51 -0700 (PDT) MIME-Version: 1.0 References: <20200310104348.29155-1-franck.jullien@gmail.com> <20200311150940.GF3335@pengutronix.de> In-Reply-To: <20200311150940.GF3335@pengutronix.de> From: Franck Jullien Date: Wed, 11 Mar 2020 20:42:40 +0100 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] scripts/bareboximd: add mode argument to open call To: Sascha Hauer Cc: barebox TGUgbWVyLiAxMSBtYXJzIDIwMjAgw6AgMTY6MDksIFNhc2NoYSBIYXVlciA8cy5oYXVlckBwZW5n dXRyb25peC5kZT4gYSDDqWNyaXQgOgo+Cj4gSGkgRnJhbmNrLAo+Cj4gT24gVHVlLCBNYXIgMTAs IDIwMjAgYXQgMTE6NDM6NDhBTSArMDEwMCwgZnJhbmNrLmp1bGxpZW5AZ21haWwuY29tIHdyb3Rl Ogo+ID4gRnJvbTogRnJhbmNrIEp1bGxpZW4gPGZyYW5jay5qdWxsaWVuQGdtYWlsLmNvbT4KPiA+ Cj4gPiBOZXdlciBnY2MgY29tcGxhaW4gYWJvdXQgbWlzc2luZyBtb2RlIGFyZ3VtZW50IHdoZW4g YSBuZXcgZmlsZSBpcwo+ID4gY3JlYXRlZC4gVGhpcyBpcyBhbiBleHRyYWN0IG9mIG1hbi1wYWdl czoKPiA+Cj4gPiAgIlRoZSBtb2RlIGFyZ3VtZW50IHNwZW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gICAgZmQgPSBvcGVuKGZpbGVuYW1lLCBPX1dS T05MWSB8IE9fVFJVTkMgfCBPX0NSRUFULCBTX0lSVVNSIHwgU19JV1VTUiB8IFNfSVJHUlAgfCBT X0lST1RIKTsKPiA+ICAgICAgIGlmIChmZCA8IDApCj4gPiAgICAgICAgICAgICAgIHJldHVybiBm ZDsKPiA+Cj4gPiAtLQo+ID4gMi4xNy4xCj4gPgo+ID4KPiA+IF9fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gPiBiYXJlYm94IG1haWxpbmcgbGlzdAo+ID4g YmFyZWJveEBsaXN0cy5pbmZyYWRlYWQub3JnCj4gPiBodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL2JhcmVib3gKPiA+Cj4KPiAtLQo+IFBlbmd1dHJvbml4IGUuSy4g ICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 Cj4gU3RldWVyd2FsZGVyIFN0ci4gMjEgICAgICAgICAgICAgICAgICAgICAgIHwgaHR0cDovL3d3 dy5wZW5ndXRyb25peC5kZS8gIHwKPiAzMTEzNyBIaWxkZXNoZWltLCBHZXJtYW55ICAgICAgICAg ICAgICAgICAgfCBQaG9uZTogKzQ5LTUxMjEtMjA2OTE3LTAgICAgfAo+IEFtdHNnZXJpY2h0IEhp bGRlc2hlaW0sIEhSQSAyNjg2ICAgICAgICAgICB8IEZheDogICArNDktNTEyMS0yMDY5MTctNTU1 NSB8CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpiYXJl Ym94IG1haWxpbmcgbGlzdApiYXJlYm94QGxpc3RzLmluZnJhZGVhZC5vcmcKaHR0cDovL2xpc3Rz LmluZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9iYXJlYm94Cg==