From: Joerg Sonnenberger Date: Fri, 25 Jul 2008 23:53:21 +0000 (-0400) Subject: Be consistent with mtree reader and use rdev in the writer. X-Git-Tag: v2.6.0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69a494dfd082ca6d10043e3f230ad0dff8802b00;p=thirdparty%2Flibarchive.git Be consistent with mtree reader and use rdev in the writer. SVN-Revision: 158 --- diff --git a/libarchive/archive_write_set_format_mtree.c b/libarchive/archive_write_set_format_mtree.c index e61f9f168..640679e63 100644 --- a/libarchive/archive_write_set_format_mtree.c +++ b/libarchive/archive_write_set_format_mtree.c @@ -158,14 +158,14 @@ archive_write_mtree_finish_entry(struct archive_write *a) case AE_IFCHR: archive_string_sprintf(&mtree->buf, " type=char device=native,%d,%d\n", - archive_entry_devmajor(entry), - archive_entry_devminor(entry)); + archive_entry_rdevmajor(entry), + archive_entry_rdevminor(entry)); break; case AE_IFBLK: archive_string_sprintf(&mtree->buf, " type=block device=native,%d,%d\n", - archive_entry_devmajor(entry), - archive_entry_devminor(entry)); + archive_entry_rdevmajor(entry), + archive_entry_rdevminor(entry)); break; case AE_IFDIR: archive_strcat(&mtree->buf, " type=dir\n");