diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-22 23:52:57 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-23 04:44:41 +1000 |
commit | 1e0286a58015a0b39b61984edd1ae409f74d4fff (patch) | |
tree | 1fc0eff988baf455408eca1cc2d5bf7b0d5adbc0 | |
parent | f4462cc5040714f26af95972ae662ce27d9acbfe (diff) | |
download | busybox-w32-1e0286a58015a0b39b61984edd1ae409f74d4fff.tar.gz busybox-w32-1e0286a58015a0b39b61984edd1ae409f74d4fff.tar.bz2 busybox-w32-1e0286a58015a0b39b61984edd1ae409f74d4fff.zip |
archival/cpio: leave device number field unknown, as Windows does not have it
-rw-r--r-- | archival/libunarchive/get_header_cpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index 6fd134018..2d9d36efb 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
@@ -143,7 +143,9 @@ char get_header_cpio(archive_handle_t *archive_handle) | |||
143 | /* Found the file with data in */ | 143 | /* Found the file with data in */ |
144 | pending_hardlinks = nlink; | 144 | pending_hardlinks = nlink; |
145 | } | 145 | } |
146 | #ifndef __MINGW32__ | ||
146 | file_header->device = makedev(major, minor); | 147 | file_header->device = makedev(major, minor); |
148 | #endif | ||
147 | 149 | ||
148 | if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { | 150 | if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { |
149 | archive_handle->action_data(archive_handle); | 151 | archive_handle->action_data(archive_handle); |