diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-04-23 17:13:40 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-04-23 17:13:40 +0000 |
commit | 18540c3839059686be55268e804dd8065953cc17 (patch) | |
tree | 9c7d24ad7f10a023c7c50d67c3d3c1826c1d75b8 /lib/libarchive/archive_write_set_format_shar.c | |
parent | 5b2a80f16691e0313d4f7244e6cf4ac97c05527e (diff) | |
download | FreeBSD-src-18540c3839059686be55268e804dd8065953cc17.zip FreeBSD-src-18540c3839059686be55268e804dd8065953cc17.tar.gz |
Set the 'dump' flag for shardump format.
Credit Juergen Lock.
Pointy hat to me for deleting this somewhere along the way.
Diffstat (limited to 'lib/libarchive/archive_write_set_format_shar.c')
-rw-r--r-- | lib/libarchive/archive_write_set_format_shar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libarchive/archive_write_set_format_shar.c b/lib/libarchive/archive_write_set_format_shar.c index 135beca..f9082c6 100644 --- a/lib/libarchive/archive_write_set_format_shar.c +++ b/lib/libarchive/archive_write_set_format_shar.c @@ -130,7 +130,11 @@ archive_write_set_format_shar(struct archive *a) int archive_write_set_format_shar_dump(struct archive *a) { + struct shar *shar; + archive_write_set_format_shar(a); + shar = a->format_data; + shar->dump = 1; a->format_write_data = archive_write_shar_data_uuencode; a->archive_format = ARCHIVE_FORMAT_SHAR_DUMP; a->archive_format_name = "shar dump"; |