chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import: add a couple of additional suffixes to remove from raw images
[elogind.git]
/
src
/
import
/
import.c
diff --git
a/src/import/import.c
b/src/import/import.c
index f44d47df9d23eeadff1b5f9f2e7538b4005b92f9..62e3118a7fab2d905bc24c46939e5062906c8210 100644
(file)
--- a/
src/import/import.c
+++ b/
src/import/import.c
@@
-165,9
+165,11
@@
static void on_raw_finished(RawImport *import, int error, void *userdata) {
static int strip_raw_suffixes(const char *p, char **ret) {
static const char suffixes[] =
".xz\0"
static int strip_raw_suffixes(const char *p, char **ret) {
static const char suffixes[] =
".xz\0"
+ ".gz\0"
".raw\0"
".qcow2\0"
".raw\0"
".qcow2\0"
- ".img\0";
+ ".img\0"
+ ".bin\0";
_cleanup_free_ char *q = NULL;
_cleanup_free_ char *q = NULL;