Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/archival/libunarchive/unpack_ar_archive.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/archival/libunarchive/unpack_ar_archive.c
r821 r1770 1 /* vi: set ts=4:*/1 /* vi: set sw=4 ts=4: */ 2 2 /* 3 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 4 */ 5 #include <fcntl.h> 6 #include <stdlib.h> 7 #include <string.h> 5 6 #include "libbb.h" 8 7 #include "unarchive.h" 9 #include "libbb.h"10 8 11 9 void unpack_ar_archive(archive_handle_t *ar_archive) … … 13 11 char magic[7]; 14 12 15 archive_xread_all(ar_archive, magic, 7);13 xread(ar_archive->src_fd, magic, 7); 16 14 if (strncmp(magic, "!<arch>", 7) != 0) { 17 bb_error_msg_and_die(" Invalid ar magic");15 bb_error_msg_and_die("invalid ar magic"); 18 16 } 19 17 ar_archive->offset += 7;
Note:
See TracChangeset
for help on using the changeset viewer.