git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c44c6
)
wimlib_split(): forbid splitting arbitrary WIMStructs
author
Eric Biggers
<ebiggers3@gmail.com>
Mon, 19 Oct 2015 00:39:27 +0000
(19:39 -0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Mon, 19 Oct 2015 02:01:13 +0000
(21:01 -0500)
src/split.c
patch
|
blob
|
history
diff --git
a/src/split.c
b/src/split.c
index 6124a67da81c09317ca5c2ba993c05cb4f6e3067..07106746f484885cbe90771b0c139007400ab3f5 100644
(file)
--- a/
src/split.c
+++ b/
src/split.c
@@
-219,6
+219,13
@@
wimlib_split(WIMStruct *wim, const tchar *swm_name,
return WIMLIB_ERR_UNSUPPORTED;
}
+ for (i = 0; i < wim->hdr.image_count; i++) {
+ if (!is_image_unchanged_from_wim(wim->image_metadata[i], wim)) {
+ ERROR("Only an unmodified, on-disk WIM file can be split.");
+ return WIMLIB_ERR_UNSUPPORTED;
+ }
+ }
+
memset(&swm_info, 0, sizeof(swm_info));
swm_info.max_part_size = part_size;