From 781e66d599779916bae43b519a12830d1ca228f7 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 15 Aug 2016 23:55:52 -0700 Subject: [PATCH] wimexport: allow exporting to archive directly on block device --- programs/imagex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index 1eb8489b..c1b064dc 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2976,9 +2976,9 @@ imagex_export(int argc, tchar **argv, int cmd) wim_is_new = false; /* Destination file exists. */ - if (!S_ISREG(stbuf.st_mode)) { - imagex_error(T("\"%"TS"\" is not a regular file"), - dest_wimfile); + if (!S_ISREG(stbuf.st_mode) && !S_ISBLK(stbuf.st_mode)) { + imagex_error(T("\"%"TS"\" is not a regular file " + "or block device"), dest_wimfile); ret = -1; goto out_free_src_wim; } -- 2.43.0