]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Provide format names that allow explicit setting of "restricted pax"
authorTim Kientzle <kientzle@gmail.com>
Fri, 12 Mar 2010 05:58:35 +0000 (00:58 -0500)
committerTim Kientzle <kientzle@gmail.com>
Fri, 12 Mar 2010 05:58:35 +0000 (00:58 -0500)
format.  In particular, as pointed out in Issue 74, this allows you
to use bsdcpio to write restricted pax format.

SVN-Revision: 2026

libarchive/archive_write_set_format_by_name.c

index 0851c1ec66c7c4c508054e754ea8ee0960f4310a..efe9c521db2023283597c195806c75bed7516a86 100644 (file)
@@ -48,6 +48,7 @@ struct { const char *name; int (*setter)(struct archive *); } names[] =
        { "arbsd",      archive_write_set_format_ar_bsd },
        { "argnu",      archive_write_set_format_ar_svr4 },
        { "arsvr4",     archive_write_set_format_ar_svr4 },
+       { "bsdtar",     archive_write_set_format_pax_restricted },
        { "cd9660",     archive_write_set_format_iso9660 },
        { "cpio",       archive_write_set_format_cpio },
        { "iso",        archive_write_set_format_iso9660 },
@@ -56,7 +57,9 @@ struct { const char *name; int (*setter)(struct archive *); } names[] =
        { "newc",       archive_write_set_format_cpio_newc },
        { "odc",        archive_write_set_format_cpio },
        { "pax",        archive_write_set_format_pax },
+       { "paxr",       archive_write_set_format_pax_restricted },
        { "posix",      archive_write_set_format_pax },
+       { "rpax",       archive_write_set_format_pax_restricted },
        { "shar",       archive_write_set_format_shar },
        { "shardump",   archive_write_set_format_shar_dump },
        { "ustar",      archive_write_set_format_ustar },