summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index fea3f03..b870ec5 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -795,9 +795,13 @@ get_uncompressed_name (FrCommandTar *c_tar,
new_name[l - 5] = 0;
}
else if (is_mime_type (comm->mime_type, "application/x-xz-compressed-tar")) {
- /* X.tar.xz --> X.tar
- * (There doesn't seem to be a shorthand suffix) */
- if (file_extension_is (e_filename, ".tar.xz"))
+ /* X.txz --> X.tar
+ * X.tar.xz --> X.tar */
+ if (file_extension_is (e_filename, ".txz")) {
+ new_name[l - 2] = 'a';
+ new_name[l - 1] = 'r';
+ }
+ else if (file_extension_is (e_filename, ".tar.xz"))
new_name[l - 3] = 0;
}
else if (is_mime_type (comm->mime_type, "application/x-lzop-compressed-tar")) {