cpio: support some long options; document GNU options

This commit is contained in:
Denis Vlasenko
2008-07-11 21:42:12 +00:00
parent abe49fa54f
commit 2b407b12be
2 changed files with 93 additions and 17 deletions

View File

@@ -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 */
@@ -149,6 +149,7 @@ char FAST_FUNC 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)) */