commit | f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Sun Nov 03 14:14:53 2002 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Sun Nov 03 14:14:53 2002 +0000 |
tree | 50591ad4dac01b968a3ad68bb806d0efe3b18b48 | |
parent | 237ae42fc96ede945d28d9054f045b73e419d089 [diff] |
Call lseek directly rather than via data_align()
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index ecd9e78..66f6808 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c
@@ -85,7 +85,7 @@ /* 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);