From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f839d-0004EZ-91 for barebox@lists.infradead.org; Mon, 16 Apr 2018 12:22:43 +0000 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Mon, 16 Apr 2018 14:22:25 +0200 Message-Id: <20180416122225.6302-2-u.oelmann@pengutronix.de> In-Reply-To: <20180416122225.6302-1-u.oelmann@pengutronix.de> References: <20180416122225.6302-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 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: [PATCH 2/2] fs: remove shortcut in canonicalizing filenames To: Barebox List T25seSBpbmRpdmlkdWFsbHkgZ2V0dGluZyB0aGUgZmlsZSBzdGF0dXMgZm9yIGV2ZXJ5IHBhcnQg b2YgdGhlIHBhdGggdGVsbHMgdXMgaWYKYSBzeW1ib2xpYyBsaW5rIGlzIGludm9sdmVkIG9yIG5v dC4gSWYgdGhpcyBpcyB0aGUgY2FzZSB0aGUgbGF0ZXIgY2FsbCB0bwpyZWFkbGluayB3aWxsIGNo ZWNrIGlmIHRoZSBmaWxlc3lzdGVtIHN1cHBvcnRzIHN5bWJvbGljIGxpbmtzIG9yIG5vdC4KCkhl bmNlIHRoaXMgcmV2ZXJ0cyBjb21taXQgZDc5YTgxNzM2ZjY0ICgiZnM6IERvbid0IGJvdGhlciBm aWxlc3lzdGVtcyB3aXRob3V0Cmxpbmsgc3VwcG9ydCB3aXRoIGFkZGl0aW9uYWwgc3RhdCgpIGNh bGxzIikuCgpTaWduZWQtb2ZmLWJ5OiBVbHJpY2ggw5ZsbWFubiA8dS5vZWxtYW5uQHBlbmd1dH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