summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_write_set_format_shar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_write_set_format_shar.c')
-rw-r--r--lib/libarchive/archive_write_set_format_shar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libarchive/archive_write_set_format_shar.c b/lib/libarchive/archive_write_set_format_shar.c
index f66ab9e..2e3f348 100644
--- a/lib/libarchive/archive_write_set_format_shar.c
+++ b/lib/libarchive/archive_write_set_format_shar.c
@@ -275,13 +275,13 @@ archive_write_shar_header(struct archive *a, struct archive_entry *entry)
break;
case S_IFCHR:
shar_printf(a, "mknod %s c %d %d\n", name,
- archive_entry_devmajor(entry),
- archive_entry_devminor(entry));
+ archive_entry_rdevmajor(entry),
+ archive_entry_rdevminor(entry));
break;
case S_IFBLK:
shar_printf(a, "mknod %s b %d %d\n", name,
- archive_entry_devmajor(entry),
- archive_entry_devminor(entry));
+ archive_entry_rdevmajor(entry),
+ archive_entry_rdevminor(entry));
break;
default:
return (ARCHIVE_WARN);
OpenPOWER on IntegriCloud