From: Eric Biggers Date: Tue, 16 Aug 2016 06:55:52 +0000 (-0700) Subject: wimexport: allow exporting to archive directly on block device X-Git-Tag: v1.10.0~2 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=781e66d599779916bae43b519a12830d1ca228f7 wimexport: allow exporting to archive directly on block device --- 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; }