From 004eb4350f8f1be4b169c1f562c8f786b4792035 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 6 Aug 2009 01:03:38 -0400 Subject: Use portable archive_entry services instead of S_ISBLK() and S_ISCHR() macros. SVN-Revision: 1347 --- cpio/cpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpio/cpio.c') 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)); -- cgit v1.2.1