Problem: MS-Windows: ADS was not preserved if 'backupcopy' is "yes".
Solution: Copy ADS before truncating the file. (Ken Takata, closes #7762)
#endif
#if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
mch_copy_sec(fname, backup);
+#endif
+#ifdef MSWIN
+ (void)mch_copy_file_attribute(fname, backup);
#endif
break;
}
#if defined(MSWIN)
if (backup != NULL && overwriting && !append)
- {
- if (backup_copy)
- (void)mch_copy_file_attribute(wfname, backup);
- else
- (void)mch_copy_file_attribute(backup, wfname);
- }
+ (void)mch_copy_file_attribute(backup, wfname);
if (!overwriting && !append)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2450,
/**/
2449,
/**/