From bdfedea4e031c9840e3e99cd85c1be15fe96558c Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 25 Dec 2022 02:04:49 +0800 Subject: [PATCH] Close missing fd Fix #6463 --- native/src/init/twostage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/native/src/init/twostage.cpp b/native/src/init/twostage.cpp index 64a6c28ce..e7fd1ee31 100644 --- a/native/src/init/twostage.cpp +++ b/native/src/init/twostage.cpp @@ -26,6 +26,7 @@ void LegacySARInit::first_stage_prep() { write(dest, init.buf, init.sz); fclone_attr(src, dest); close(dest); + close(src); } xmount("/data/init", "/init", nullptr, MS_BIND, nullptr); }