From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cbUY7-0007wi-EF for ptxdist@pengutronix.de; Wed, 08 Feb 2017 16:52:51 +0100 Received: from mol by pty.hi.pengutronix.de with local (Exim 4.84_2) (envelope-from ) id 1cbUY7-0003GO-70 for ptxdist@pengutronix.de; Wed, 08 Feb 2017 16:52:51 +0100 Date: Wed, 8 Feb 2017 16:52:51 +0100 From: Michael Olbrich Message-ID: <20170208155251.kldi3lxukaqz44g5@pengutronix.de> References: <20170130203008.5958-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170130203008.5958-1-u.kleine-koenig@pengutronix.de> Subject: Re: [ptxdist] [PATCH] genext2fs: fix off-by-one in symlink creation List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de T24gTW9uLCBKYW4gMzAsIDIwMTcgYXQgMDk6MzA6MDhQTSArMDEwMCwgVXdlIEtsZWluZS1Lw7Zu aWcgd3JvdGU6Cj4gVGhpcyBmaXhlcyBhIGZhaWx1cmUgd2hlbiBnZW5leHQyZnMgdHJpZXMgdG8g Y3JlYXRlIGEgc3ltbGluayB3aGVyZSB0aGUgdGFyZ2V0Cj4gaGFzIGEgbGVuZ3RoIG9mIGV4YWN0 bHkgNjAgYnl0ZXMuCj4gCj4gU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xl aW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KClRoYW5rcywgYXBwbGllZCwKCk1pY2hhZWwKC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