Do not set the error_code from errno

This commit is contained in:
Klaas Freitag 2013-05-17 12:25:17 +02:00
parent 4f47aba1e2
commit 61335b6a70

View File

@ -1202,7 +1202,6 @@ static int owncloud_sendfile(csync_vio_method_handle_t *src, csync_vio_method_ha
if( state == HBF_USER_ABORTED ) {
DEBUG_WEBDAV("User Aborted file upload!");
errno = ERRNO_USER_ABORT;
error_code = errno;
rc = -1;
}
/* If the source file changed during submission, lets try again */
@ -1253,7 +1252,6 @@ static int owncloud_sendfile(csync_vio_method_handle_t *src, csync_vio_method_ha
if( _user_want_abort() ) {
errno = ERRNO_USER_ABORT;
error_code = errno;
break;
}