forked from gridcf/UberFTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple fix for github issue gridcf#3
This is a simple and not very clean fix for gridcf/issues/3 Either (one of) the l_write() or the l_close() can fail if the remote file already exists, since the data goes over a different channel than the control messages. For large files, it will typically be one of the later l_write() statements, for small files probably the l_close(). Hence we effectively only have the errmsg to find out what happened, and therefore do a simple str(n)cmp with this errmsg. For this we also need to add a function to get it from the opaque errcode_t.
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters