From f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 3 Nov 2002 14:14:53 +0000 Subject: Call lseek directly rather than via data_align() --- archival/rpm2cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/rpm2cpio.c') 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); -- cgit v1.2.3