summaryrefslogtreecommitdiff
path: root/archival/libunarchive/get_header_cpio.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-11 21:47:23 +0000
committerDenis Vlasenko2008-07-11 21:47:23 +0000
commitfa1649e9ac6ec8d84f10a14f4f1e28b86645206f (patch)
tree9d2a6a659f53d7af59e3d92addef739ae9bc36e8 /archival/libunarchive/get_header_cpio.c
parentdee8587d9208e4ea5ba8f8bb73b555007529372e (diff)
downloadbusybox-fa1649e9ac6ec8d84f10a14f4f1e28b86645206f.zip
busybox-fa1649e9ac6ec8d84f10a14f4f1e28b86645206f.tar.gz
cpio: backport the fix for
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771
Diffstat (limited to 'archival/libunarchive/get_header_cpio.c')
-rw-r--r--archival/libunarchive/get_header_cpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c
index b97b53b..0b9d385 100644
--- a/archival/libunarchive/get_header_cpio.c
+++ b/archival/libunarchive/get_header_cpio.c
@@ -7,8 +7,8 @@
#include "libbb.h"
#include "unarchive.h"
-typedef struct hardlinks_s {
- struct hardlinks_s *next;
+typedef struct hardlinks_t {
+ struct hardlinks_t *next;
int inode; /* TODO: must match maj/min too! */
int mode ;
int mtime; /* These three are useful only in corner case */
@@ -144,6 +144,7 @@ char get_header_cpio(archive_handle_t *archive_handle)
free(make_me);
goto next_link;
}
+ cur = cur->next;
}
/* Oops... no file with such inode was created... do it now
* (happens when hardlinked files are empty (zero length)) */