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 ecd9e78..66f6808 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);