X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=30c2e3e8b289e9cd6b4995dfd0d9332e2a3f2814;hp=41aba7ebc2dd5188e7c8def71570563eb8355216;hb=1bf2548cc5ad9e94951c43b8c223cec058d28294;hpb=f6f4c63e772e9dc4264ee4ffc4f9c4b615a851bc diff --git a/programs/imagex.c b/programs/imagex.c index 41aba7eb..30c2e3e8 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1787,7 +1787,7 @@ int main(int argc, const char **argv) imagex_error("Exiting with error code %d:\n" " %s.", ret, wimlib_get_error_string(ret)); - if (ret == WIMLIB_ERR_NTFS_3G) + if (ret == WIMLIB_ERR_NTFS_3G && errno != 0) imagex_error_with_errno("errno"); } return ret;