summaryrefslogtreecommitdiff
path: root/src/import/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/import.c')
-rw-r--r--src/import/import.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/import/import.c b/src/import/import.c
index 0c215c6484..b3ebb35357 100644
--- a/src/import/import.c
+++ b/src/import/import.c
@@ -52,9 +52,11 @@ static int strip_tar_suffixes(const char *name, char **ret) {
e = endswith(name, ".tar");
if (!e)
+ e = endswith(name, ".tar.xz");
+ if (!e)
e = endswith(name, ".tar.gz");
if (!e)
- e = endswith(name, ".tar.xz");
+ e = endswith(name, ".tar.bz2");
if (!e)
e = endswith(name, ".tgz");
if (!e)
@@ -162,6 +164,7 @@ static int strip_raw_suffixes(const char *p, char **ret) {
static const char suffixes[] =
".xz\0"
".gz\0"
+ ".bz2\0"
".raw\0"
".qcow2\0"
".img\0"