]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
st_dev field corresponds to dev{major,minor} and not rdev{major,minor}.
authorJean-Yves Migeon <jeanyves.migeon@free.fr>
Thu, 5 Sep 2013 14:42:17 +0000 (16:42 +0200)
committerJean-Yves Migeon <jeanyves.migeon@free.fr>
Thu, 5 Sep 2013 14:42:17 +0000 (16:42 +0200)
libarchive/archive_write_set_format_mtree.c

index 40db2ffc601401e9483d2485e4a4ee3a39c8ee84..4d343eaf212dbcdf373688f9d3f729c459f45500 100644 (file)
@@ -997,8 +997,8 @@ write_mtree_entry(struct archive_write *a, struct mtree_entry *me)
        if ((keys & F_RESDEV) != 0) {
                archive_string_sprintf(str,
                    " resdevice=native,%ju,%ju",
-                   (uintmax_t)me->rdevmajor,
-                   (uintmax_t)me->rdevminor);
+                   (uintmax_t)me->devmajor,
+                   (uintmax_t)me->devminor);
        }
 
        switch (me->filetype) {