mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 21:04:56 +00:00
Call lseek directly rather than via data_align()
This commit is contained in:
parent
237ae42fc9
commit
f92caa7619
@ -85,7 +85,7 @@ extern int rpm2cpio_main(int argc, char **argv)
|
|||||||
|
|
||||||
/* Skip the signature header */
|
/* Skip the signature header */
|
||||||
skip_header(rpm_fd);
|
skip_header(rpm_fd);
|
||||||
data_align(rpm_fd, lseek(rpm_fd, 0, SEEK_CUR), 8);
|
lseek(rpm_fd, (8 - (lseek(rpm_fd, 0, SEEK_CUR) % 8)) % 8, SEEK_CUR);
|
||||||
|
|
||||||
/* Skip the main header */
|
/* Skip the main header */
|
||||||
skip_header(rpm_fd);
|
skip_header(rpm_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user