From 7c9fba5efecc3fd82b423238d1a4fe090f04e7f9 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 23 May 2013 11:40:53 -0500 Subject: [PATCH 1/1] wimlib_get_wim_info(): Fix setting of is_readonly --- src/wim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wim.c b/src/wim.c index 475ec19b..ba0702f7 100644 --- a/src/wim.c +++ b/src/wim.c @@ -351,7 +351,7 @@ wimlib_get_wim_info(WIMStruct *wim, struct wimlib_wim_info *info) info->total_bytes = 0; info->has_integrity_table = wim->hdr.integrity.offset != 0; info->opened_from_file = (wim->filename != NULL); - info->is_readonly == (wim->hdr.flags & WIM_HDR_FLAG_READONLY) || + info->is_readonly = (wim->hdr.flags & WIM_HDR_FLAG_READONLY) || (wim->hdr.total_parts != 1) || (wim->filename && taccess(wim->filename, W_OK)); info->has_rpfix = (wim->hdr.flags & WIM_HDR_FLAG_RP_FIX) != 0; -- 2.43.0