Commit 4436f8af authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Don't seek core file for magic

This is done by open_image_ro in the restorer bootstrap preparation code.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 056f41fb
......@@ -320,7 +320,6 @@ long restore_task(struct task_restore_core_args *args)
write_hex_n((long)vma_entry);
#endif
sys_lseek(args->fd_core, MAGIC_OFFSET, SEEK_SET);
ret = sys_read(args->fd_core, core_entry, sizeof(*core_entry));
if (ret != sizeof(*core_entry)) {
write_num_n(__LINE__);
......
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