mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-07 15:23:57 +00:00
Support correct seeking when doing get_fileinfo on encrypted archives.
This commit is contained in:
parent
c5938c6a8b
commit
bf1c1ababc
1 changed files with 2 additions and 0 deletions
2
lrzip.c
2
lrzip.c
|
|
@ -837,6 +837,8 @@ next_chunk:
|
|||
} while (last_head);
|
||||
++stream;
|
||||
}
|
||||
if (ENCRYPT && c_len % CBC_LEN)
|
||||
c_len += CBC_LEN - (c_len % CBC_LEN);
|
||||
if (unlikely((ofs = lseek(fd_in, c_len, SEEK_CUR)) == -1))
|
||||
fatal("Failed to lseek c_len in get_fileinfo\n");
|
||||
/* Chunk byte entry */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue