aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index ecd9e7801..66f680869 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -85,7 +85,7 @@ extern int rpm2cpio_main(int argc, char **argv)
/* Skip the signature header */
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_header(rpm_fd);