Call lseek directly rather than via data_align()
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 3 Nov 2002 14:14:53 +0000 (14:14 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 3 Nov 2002 14:14:53 +0000 (14:14 -0000)
archival/rpm2cpio.c

index ecd9e7801dbc8c9486747f9c98fd31af97ccc020..66f680869d2a2f242fe0bc81dedb5a16265fe417 100644 (file)
@@ -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);