]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Be consistent with mtree reader and use rdev in the writer.
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Fri, 25 Jul 2008 23:53:21 +0000 (19:53 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Fri, 25 Jul 2008 23:53:21 +0000 (19:53 -0400)
SVN-Revision: 158

libarchive/archive_write_set_format_mtree.c

index e61f9f168cbc9d03358e6362a5db1c9a19c37225..640679e6356491bb96c585e89fea450cc084eed8 100644 (file)
@@ -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");