if (exclude_path(path, path_len, params->config, false)) {
/* Exclude a file or directory tree based on the capture
* configuration file */
- if ((params->add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
+ if ((params->add_flags & WIMLIB_ADD_FLAG_EXCLUDE_VERBOSE)
&& params->progress_func)
{
union wimlib_progress_info info;
return WIMLIB_ERR_NTFS_3G;
}
- if ((params->add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+ if ((params->add_flags & WIMLIB_ADD_FLAG_VERBOSE)
&& params->progress_func)
{
union wimlib_progress_info info;
/* Create a WIM dentry with an associated inode, which may be shared */
ret = inode_table_new_dentry(params->inode_table,
path_basename_with_len(path, path_len),
- ni->mft_no,
- 0,
- &root);
+ ni->mft_no, 0, false, &root);
if (ret)
return ret;
goto out;
}
- if (!(params->add_image_flags & WIMLIB_ADD_IMAGE_FLAG_NO_ACLS)) {
+ /* Reparse-point fixups are a no-op because in NTFS-3g capture mode we
+ * only allow capturing an entire volume. */
+ if (params->add_flags & WIMLIB_ADD_FLAG_RPFIX &&
+ inode_is_symlink(inode))
+ inode->i_not_rpfixed = 0;
+
+ if (!(params->add_flags & WIMLIB_ADD_FLAG_NO_ACLS)) {
/* Get security descriptor */
char _sd[1];
char *sd = _sd;