aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-07-13 04:59:13 -0400
committerMike Frysinger <vapier@gentoo.org>2015-07-13 04:59:13 -0400
commit9daf7217a29e8542ad80672a3b82ae1b8c497321 (patch)
tree4604bbfc5b14b82d1cb3a0b07d21922cd907c470 /paxinc.h
parentscanelf: include filename/details in all ar related messages (diff)
downloadpax-utils-9daf7217a29e8542ad80672a3b82ae1b8c497321.tar.gz
pax-utils-9daf7217a29e8542ad80672a3b82ae1b8c497321.tar.bz2
pax-utils-9daf7217a29e8542ad80672a3b82ae1b8c497321.zip
scanelf: do not warn about invalid archive entries by defaultv1.0.4
It's not uncommon for embedded toolchains or random targets to create their own spin on the archive format. Rather than complain about all of these by default, put it behind the -v flag. It's not like people can do anything about this normally anyways. URL: https://bugs.gentoo.org/428464
Diffstat (limited to 'paxinc.h')
-rw-r--r--paxinc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/paxinc.h b/paxinc.h
index 003877d..0a8e08a 100644
--- a/paxinc.h
+++ b/paxinc.h
@@ -37,6 +37,7 @@ typedef struct {
const char *filename;
size_t skip;
char *extfn;
+ bool verbose;
} archive_handle;
#else
typedef void archive_handle;
@@ -63,8 +64,8 @@ typedef struct {
} buf;
#endif
} archive_member;
-archive_handle *ar_open_fd(const char *filename, int fd);
-archive_handle *ar_open(const char *filename);
+archive_handle *ar_open_fd(const char *filename, int fd, bool verbose);
+archive_handle *ar_open(const char *filename, bool verbose);
archive_member *ar_next(archive_handle *);
const char *strfileperms(const char *fname);