mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
rst: Don't seek core file for magic
This is done by open_image_ro in the restorer bootstrap preparation code. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
056f41fb46
commit
4436f8afd8
1 changed files with 0 additions and 1 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue