Commit bdfedea4 authored by LoveSy's avatar LoveSy Committed by John Wu

Close missing fd

Fix #6463
parent ea0e3a09
...@@ -26,6 +26,7 @@ void LegacySARInit::first_stage_prep() { ...@@ -26,6 +26,7 @@ void LegacySARInit::first_stage_prep() {
write(dest, init.buf, init.sz); write(dest, init.buf, init.sz);
fclone_attr(src, dest); fclone_attr(src, dest);
close(dest); close(dest);
close(src);
} }
xmount("/data/init", "/init", nullptr, MS_BIND, nullptr); xmount("/data/init", "/init", nullptr, MS_BIND, nullptr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment