mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix support for new ZSTD and XZ formats
This commit is contained in:
@@ -12,7 +12,7 @@ if ($archive_type =~ /x-bzip/) {
|
||||
$cmd = "tar xvjfp ".quotemeta("$cwd/$in{'file'}").
|
||||
" -C ".quotemeta($cwd);
|
||||
}
|
||||
elsif ($archive_type =~ /x-tar|\/gzip|x-xz|x-compressed-tar/) {
|
||||
elsif ($archive_type =~ /x-tar|\/gzip|x-xz|zstd|x-compressed-tar/) {
|
||||
$cmd = "tar xfp ".quotemeta("$cwd/$in{'file'}").
|
||||
" -C ".quotemeta($cwd);
|
||||
}
|
||||
|
||||
@@ -397,6 +397,7 @@ sub print_interface {
|
||||
index($type, "-x-tar") != -1 ||
|
||||
(index($type, "-x-bzip") != -1 && has_command('bzip2')) ||
|
||||
(index($type, "-gzip") != -1 && has_command('gzip')) ||
|
||||
(index($type, "zstd") != -1 && has_command('zstd')) ||
|
||||
(index($type, "-x-xz") != -1 && has_command('xz'))
|
||||
) &&
|
||||
has_command('tar')))
|
||||
|
||||
BIN
filemin/images/icons/mime/application-x-xz-compressed-tar.png
Normal file
BIN
filemin/images/icons/mime/application-x-xz-compressed-tar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 764 B |
BIN
filemin/images/icons/mime/application-zstd.png
Normal file
BIN
filemin/images/icons/mime/application-zstd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 764 B |
Reference in New Issue
Block a user