From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Marc Kleine-Budde Date: Wed, 8 Mar 2017 12:23:05 +0100 Message-Id: <20170308112305.12046-1-mkl@pengutronix.de> Subject: [ptxdist] [PATCH] scripts/lib/ptxd_make: fix image root permission, don't leak user's umask List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Marc Kleine-Budde U2lnbmVkLW9mZi1ieTogTWFyYyBLbGVpbmUtQnVkZGUgPG1rbEBwZW5ndXRyb25peC5kZT4KLS0t CiBzY3JpcHRzL2xpYi9wdHhkX21ha2VfaW1hZ2VfZ2VuaW1hZ2Uuc2ggICAgICAgICB8IDIgKy0K IHNjcmlwdHMvbGliL3B0eGRfbWFrZV9pbWFnZV9wcmVwYXJlX3dvcmtfZGlyLnNoIHwgMiArLQog c2NyaXB0cy9saWIvcHR4ZF9tYWtlX3hwa2dfcHJlcGFyZS5zaCAgICAgICAgICAgfCA1ICsrKy0t CiAzIGZpbGVzIGNoYW5nZWQsIDUgaW5zZXJ0aW9ucygrKSwgNCBkZWxldGlvbnMoLSkKCmRpZmYg LS1naXQgYS9zY3JpcHRzL2xpYi9wdHhkX21ha2VfaW1hZ2VfZ2VuaW1hZ2Uuc2ggYi9zY3JpcHRz L2xpYi9wdHhkX21ha2VfaW1hZ2VfZ2VuaW1hZ2Uuc2gKaW5kZXggMjExMjg3NWU0ZjRkLi5iNGE4 ZTlkZTIyMmUgMTAwNjQ0Ci0tLSBhL3NjcmlwdHMvbGliL3B0eGRfbWFrZV9pbWFnZV9nZW5pbWFn ZS5zaAorKysgYi9zY3JpcHRzL2xpYi9wdHhkX21ha2VfaW1hZ2VfZ2VuaW1hZ2Uuc2gKQEAgLTU2 LDcgKzU2LD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