diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-03 14:14:53 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-03 14:14:53 +0000 |
commit | f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 (patch) | |
tree | 50591ad4dac01b968a3ad68bb806d0efe3b18b48 /archival | |
parent | 237ae42fc96ede945d28d9054f045b73e419d089 (diff) | |
download | busybox-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.tar.gz |
Call lseek directly rather than via data_align()
Diffstat (limited to 'archival')
-rw-r--r-- | archival/rpm2cpio.c | 2 |
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); |