diff options
author | Tim Kientzle <kientzle@gmail.com> | 2009-08-06 01:03:38 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2009-08-06 01:03:38 -0400 |
commit | 004eb4350f8f1be4b169c1f562c8f786b4792035 (patch) | |
tree | bd6cac29040261df8104d0801d7b963acf279666 /cpio/cpio.c | |
parent | 2770349ea0ad4d2995e81f5b703cdbaf136a220f (diff) | |
download | libarchive-004eb4350f8f1be4b169c1f562c8f786b4792035.tar.gz |
Use portable archive_entry services instead of S_ISBLK() and S_ISCHR() macros.
SVN-Revision: 1347
Diffstat (limited to 'cpio/cpio.c')
-rw-r--r-- | cpio/cpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpio/cpio.c b/cpio/cpio.c index 5b2a9afa..6b6bb696 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -973,7 +973,8 @@ list_item_verbose(struct cpio *cpio, struct archive_entry *entry) } /* Print device number or file size. */ - if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) { + if (archive_entry_filetype(entry) == AE_IFCHR + || archive_entry_filetype(entry) == AE_IFBLK) { snprintf(size, sizeof(size), "%lu,%lu", (unsigned long)archive_entry_rdevmajor(entry), (unsigned long)archive_entry_rdevminor(entry)); |