]> wimlib.net Git - wimlib/blobdiff - src/mount.c
Rework WIM writing code
[wimlib] / src / mount.c
index 8b9cab93cc47514c6d4d8e8348fdc051452a94ad..15d7444ed3036dc182712bed85fde61feaefc77e 100644 (file)
@@ -1987,8 +1987,10 @@ WIMLIBAPI int wimlib_mount(WIMStruct *wim, int image, const char *dir,
 #endif
 
        /* Mark dentry tree as modified if read-write mount. */
-       if (flags & WIMLIB_MOUNT_FLAG_READWRITE)
+       if (flags & WIMLIB_MOUNT_FLAG_READWRITE) {
                imd->modified = true;
+               imd->has_been_mounted_rw = true;
+       }
 
        /* Resolve all the lookup table entries of the dentry tree */
        DEBUG("Resolving lookup table entries");