projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237ae42
)
Call lseek directly rather than via data_align()
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 3 Nov 2002 14:14:53 +0000
(14:14 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 3 Nov 2002 14:14:53 +0000
(14:14 -0000)
archival/rpm2cpio.c
patch
|
blob
|
history
diff --git
a/archival/rpm2cpio.c
b/archival/rpm2cpio.c
index ecd9e7801dbc8c9486747f9c98fd31af97ccc020..66f680869d2a2f242fe0bc81dedb5a16265fe417 100644
(file)
--- 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);