Read Only network share

deaddox

20-02-2010 05:41:27

Love the app, however I have encountered a bug.

I have a download share that is read only. I am attempting to scan the share. Identifiy episodes and copy them to a new location that has read write access. Unfortunately when i run the move/ rename process i get an access denied error on the source file.
After taking a look at the source code i was able to fix the problem.

Line 538 of CopyMoveProgress.h reads

msr = gcnew BinaryReader(gcnew FileStream(aio->From->FullName, FileMode::Open));



Explicitly setting the access level to read prevents the file access error

msr = gcnew BinaryReader(gcnew FileStream(aio->From->FullName, FileMode::Open, FileAccess::Read));


There is probably more to this issue but i hope this pointer helps

Dox

sstteevvee

11-04-2010 23:33:23

Thanks for reporting the bug, along with a fix! :)

I've made the change in the current code, so v2.2.0b2 (out in the next couple of days) will include it.

I'll go through and check other file opening stuff, and make sure it is read-only wherever it can be, to make sure this doesn't happen elsewhere.