Sendfile opens files for read write
Brought to you by:
boudartjj
This might be more of a suggestion than a bug report,
but Sendfile opens files for read write, causing it to
fail when the files are read only.
see the google thread here for more details:
http://groups.google.com/group/
microsoft.public.dotnet.languages.csharp/browse_thread/
thread/9d95c8ed1086b80a/
409c1b2749c60dbd?hl=en#409c1b2749c60dbd
Logged In: YES
user_id=1916230
Originator: NO
Changing the line following line in FTPConnection.cs:
FileStream fs = new FileStream(localFileName, FileMode.Open);
into the following one:
FileStream fs = new FileStream(localFileName, FileMode.Open, FileAccess.Read);
seems to work, I hope it helps.
Cheers