diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-11 21:42:12 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-11 21:42:12 +0000 |
commit | 2b407b12be6bc25b81961557dd96bf81f2cf88e8 (patch) | |
tree | e567beefd99c879c331d2463dc95e1dff55f2b38 /archival/libunarchive | |
parent | abe49fa54fbd4d13f8424532abced8c3bc9afd0c (diff) | |
download | busybox-w32-2b407b12be6bc25b81961557dd96bf81f2cf88e8.tar.gz busybox-w32-2b407b12be6bc25b81961557dd96bf81f2cf88e8.tar.bz2 busybox-w32-2b407b12be6bc25b81961557dd96bf81f2cf88e8.zip |
cpio: support some long options; document GNU options
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/get_header_cpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index 96be4b5ac..95d36cca8 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
@@ -7,8 +7,8 @@ | |||
7 | #include "libbb.h" | 7 | #include "libbb.h" |
8 | #include "unarchive.h" | 8 | #include "unarchive.h" |
9 | 9 | ||
10 | typedef struct hardlinks_s { | 10 | typedef struct hardlinks_t { |
11 | struct hardlinks_s *next; | 11 | struct hardlinks_t *next; |
12 | int inode; /* TODO: must match maj/min too! */ | 12 | int inode; /* TODO: must match maj/min too! */ |
13 | int mode ; | 13 | int mode ; |
14 | int mtime; /* These three are useful only in corner case */ | 14 | int mtime; /* These three are useful only in corner case */ |
@@ -149,6 +149,7 @@ char FAST_FUNC get_header_cpio(archive_handle_t *archive_handle) | |||
149 | free(make_me); | 149 | free(make_me); |
150 | goto next_link; | 150 | goto next_link; |
151 | } | 151 | } |
152 | cur = cur->next; | ||
152 | } | 153 | } |
153 | /* Oops... no file with such inode was created... do it now | 154 | /* Oops... no file with such inode was created... do it now |
154 | * (happens when hardlinked files are empty (zero length)) */ | 155 | * (happens when hardlinked files are empty (zero length)) */ |