From e06a4e3e4b7630610e5a7da47a1f2e59c60bb3c2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 25 May 2013 22:46:21 -0500 Subject: [PATCH] join_wims(): Preserve some header flags --- NEWS | 2 ++ src/join.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index a8a795ee..1d8e6438 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ Version 1.4.2: Return error code rather than segfaulting when trying to list files from a non-first part of a split WIM. + Joining a WIM will now preserve the RP_FIX and READONLY flags. + Version 1.4.1: On Windows, paths given to wimlib-imagex are now treated case insensitively. diff --git a/src/join.c b/src/join.c index 2c459d30..a3eb07b5 100644 --- a/src/join.c +++ b/src/join.c @@ -98,6 +98,10 @@ join_wims(WIMStruct **swms, unsigned num_swms, return ret; } + /* Preserve some of the header flags */ + joined_wim->hdr.flags |= (swms[0]->hdr.flags & + (WIM_HDR_FLAG_RP_FIX | WIM_HDR_FLAG_READONLY)); + /* Write lookup table, XML data, and optional integrity table */ merge_lookup_tables(joined_wim, swms, num_swms); free_wim_info(joined_wim->wim_info); -- 2.43.0