Commit 61599059 authored by topjohnwu's avatar topjohnwu

Fix typo for SAR first stage init

parent f32a2991
...@@ -145,7 +145,7 @@ void SARFirstStageInit::prepare() { ...@@ -145,7 +145,7 @@ void SARFirstStageInit::prepare() {
int src = xopen("/init", O_RDONLY); int src = xopen("/init", O_RDONLY);
int dest = xopen("/dev/init", O_CREAT | O_WRONLY, 0); int dest = xopen("/dev/init", O_CREAT | O_WRONLY, 0);
{ {
auto init = raw_data::read(dest); auto init = raw_data::read(src);
init.patch({ make_pair(INIT_PATH, REDIR_PATH) }); init.patch({ make_pair(INIT_PATH, REDIR_PATH) });
write(dest, init.buf, init.sz); write(dest, init.buf, init.sz);
fclone_attr(src, dest); fclone_attr(src, dest);
......
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