diff options
Diffstat (limited to 'tar/write.c')
-rw-r--r-- | tar/write.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tar/write.c b/tar/write.c index 89fdc855..5c8cffb0 100644 --- a/tar/write.c +++ b/tar/write.c @@ -168,7 +168,7 @@ tar_mode_c(struct bsdtar *bsdtar) if (bsdtar->compress_program) { archive_write_add_filter_program(a, bsdtar->compress_program); } else { - const char *name; + const char *name = "?"; switch (bsdtar->create_compression) { case 0: @@ -212,6 +212,10 @@ tar_mode_c(struct bsdtar *bsdtar) case 0: r = ARCHIVE_OK; break; + case OPTION_B64ENCODE: + r = archive_write_add_filter_b64encode(a); + name = "b64encode"; + break; case OPTION_UUENCODE: r = archive_write_add_filter_uuencode(a); name = "uuencode"; |