projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rdate: make it do something remotely sane, facing 32-bit time overflow
[oweals/busybox.git]
/
archival
/
rpm.c
diff --git
a/archival/rpm.c
b/archival/rpm.c
index 885eddd643876213ca04e73ae8eaad3c2b79d8c4..83160f975eaecd5671cb3c0628cce1f9e9bc4f1e 100644
(file)
--- a/
archival/rpm.c
+++ b/
archival/rpm.c
@@
-29,6
+29,7
@@
//usage: "\n -qpc List config files"
#include "libbb.h"
//usage: "\n -qpc List config files"
#include "libbb.h"
+#include "common_bufsiz.h"
#include "bb_archive.h"
#include "rpm.h"
#include "bb_archive.h"
#include "rpm.h"
@@
-93,8
+94,8
@@
struct globals {
rpm_index **mytags;
int tagcount;
} FIX_ALIASING;
rpm_index **mytags;
int tagcount;
} FIX_ALIASING;
-#define G (*(struct globals*)
&
bb_common_bufsiz1)
-#define INIT_G() do { } while (0)
+#define G (*(struct globals*)bb_common_bufsiz1)
+#define INIT_G() do {
setup_common_bufsiz();
} while (0)
static void extract_cpio(int fd, const char *source_rpm)
{
static void extract_cpio(int fd, const char *source_rpm)
{
@@
-122,7
+123,7
@@
static void extract_cpio(int fd, const char *source_rpm)
archive_handle->src_fd = fd;
/*archive_handle->offset = 0; - init_handle() did it */
archive_handle->src_fd = fd;
/*archive_handle->offset = 0; - init_handle() did it */
- setup_unzip_on_fd(archive_handle->src_fd, /*fail_if_not_
detect
ed:*/ 1);
+ setup_unzip_on_fd(archive_handle->src_fd, /*fail_if_not_
compress
ed:*/ 1);
while (get_header_cpio(archive_handle) == EXIT_SUCCESS)
continue;
}
while (get_header_cpio(archive_handle) == EXIT_SUCCESS)
continue;
}