From 33c5847f5ca6d65c79cc74d479bd6a4630e5e90a Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 27 Sep 2014 17:23:51 -0500 Subject: [PATCH] wimlib-imagex: Don't open base or template WIMs for write access --- programs/imagex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index 820c4338..eec90698 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2091,8 +2091,8 @@ imagex_capture_or_append(int argc, tchar **argv, int cmd) for (size_t i = 0; i < base_wimfiles.num_strings; i++) { ret = wimlib_open_wim_with_progress( base_wimfiles.strings[i], - open_flags, &base_wims[i], - imagex_progress_func, NULL); + open_flags & ~WIMLIB_OPEN_FLAG_WRITE_ACCESS, + &base_wims[i], imagex_progress_func, NULL); if (ret) goto out_free_base_wims; @@ -2127,7 +2127,7 @@ imagex_capture_or_append(int argc, tchar **argv, int cmd) template_wim = wim; } else { ret = wimlib_open_wim_with_progress(template_wimfile, - open_flags, + open_flags & ~WIMLIB_OPEN_FLAG_WRITE_ACCESS, &template_wim, imagex_progress_func, NULL); -- 2.43.0