Page 1 of 1

Re: Side effects on attribs on deleting a read-only hardlink

Posted: 17 Feb 2016, 16:38
by Petr Solin
Thanks for reporting this! I have tested with Explorer (in Windows 7) and TC and neither solves this problem. Salamander and TC clear more than only read-only (RO) attribute, Explorer clears only RO (other attributes are not changed), it's surely better behavior. Now I'll fix our code to clear also only RO. I will do more complex patch to fully fix this problem sometimes later, currently I'm afraid of slowdown of delete operation and do not want to spend time experimenting with this. Thanks for understanding!

Re: Side effects on attribs on deleting a read-only hardlink

Posted: 17 Feb 2016, 20:11
by Petr Solin
Yes, only for read-only files, maybe only on local fixed NTFS drives, it has to be discovered, maybe later. :wink:

You can find some info in MSDN in documention for CreateHardLink function, section Remarks:
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx

Re: Side effects on attribs on deleting a read-only hardlink

Posted: 05 Jul 2016, 16:53
by Ether
Or skip the restrictive Win32 layer. :) ZwCreateFile