summaryrefslogtreecommitdiff
path: root/archival/rpm2cpio.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-03 14:14:53 +0000
committerGlenn L McGrath2002-11-03 14:14:53 +0000
commitf92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 (patch)
tree50591ad4dac01b968a3ad68bb806d0efe3b18b48 /archival/rpm2cpio.c
parent237ae42fc96ede945d28d9054f045b73e419d089 (diff)
downloadbusybox-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.zip
busybox-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.tar.gz
Call lseek directly rather than via data_align()
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r--archival/rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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);