summaryrefslogtreecommitdiffhomepage
path: root/include/bb_archive.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-02-20 15:58:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-20 15:58:42 +0100
commit2aec773688fd64857e9446838187170760acddd4 (patch)
tree4528074a1856b5656b5db6d140026a486c44714d /include/bb_archive.h
parent10f5f9b10d5bb18aa612e8f340d8454421015b00 (diff)
rpm: use "create+rename" method of replacing existing files
Users were reporting getting errors like "ls: error while loading shared libraries: libc.so.6: ELF load command past end of file" while rpm was unpacking glibc tarball. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/bb_archive.h')
-rw-r--r--include/bb_archive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index a7a2a1135..b82cfd83c 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -122,6 +122,9 @@ typedef struct archive_handle_t {
#define ARCHIVE_NUMERIC_OWNER (1 << 7)
#define ARCHIVE_O_TRUNC (1 << 8)
#define ARCHIVE_REMEMBER_NAMES (1 << 9)
+#if ENABLE_RPM
+#define ARCHIVE_REPLACE_VIA_RENAME (1 << 10)
+#endif
/* POSIX tar Header Block, from POSIX 1003.1-1990 */