- if (lseek(fd_old, working_offset, SEEK_SET) < 0 ||
- lseek(fd_new, working_offset, SEEK_SET) < 0)
+ if (lseek64(fd_old, working_offset, SEEK_SET) < 0 ||
+ lseek64(fd_new, working_offset, SEEK_SET) < 0) {
+ log_err("Cannot seek to device offset.\n");