summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorTobias Krause <tkr@openoffice.org>2010-01-26 07:44:10 +0100
committerTobias Krause <tkr@openoffice.org>2010-01-26 07:44:10 +0100
commit519facb9fda79d5b8f4ecb53a5440d4a56df1f07 (patch)
tree62415dd7f1b5b9aadb5474438085154fc96e38ba /ucb
parent28c1c87d956999aa37ed9581873a4325ab30f993 (diff)
tkr32: #i105917# macos sdk 10.4 uses curl 7.13.1
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx26
1 files changed, 11 insertions, 15 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index 2c7f2351e9..7d44faedd4 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -577,23 +577,19 @@ Any SAL_CALL FTPContent::execute(
action = THROWINTERACTIVECONNECT;
else if(e.code() == CURLE_COULDNT_RESOLVE_HOST )
action = THROWRESOLVENAME;
- else if( e.code() == CURLE_FTP_USER_PASSWORD_INCORRECT ||
- e.code() == CURLE_FTP_WEIRD_PASS_REPLY ||
- e.code() == CURLE_LOGIN_DENIED)
- action = THROWAUTHENTICATIONREQUEST;
- else if(e.code() == CURLE_FTP_ACCESS_DENIED
-// MacOS SDK 10.4 (curl 7.19.1) doesn't define CURLE_REMOTE_ACCESS_DENIED
-#ifdef CURLE_REMOTE_ACCESS_DENIED
- || e.code() == CURLE_REMOTE_ACCESS_DENIED
+ else if( e.code() == CURLE_FTP_USER_PASSWORD_INCORRECT ||
+/*
+MacOS SDK 10.4 uses curl 7.13.1 (current baseline). Curl introduced new error codes with this version.
+*/
+#if LIBCURL_VERSION_NUM>=0x070d01 /* 7.13.1 */
+ e.code() == CURLE_LOGIN_DENIED ||
#endif
- )
+ e.code() == CURLE_BAD_PASSWORD_ENTERED ||
+ e.code() == CURLE_FTP_WEIRD_PASS_REPLY)
+ action = THROWAUTHENTICATIONREQUEST;
+ else if(e.code() == CURLE_FTP_ACCESS_DENIED)
action = THROWACCESSDENIED;
- else if(e.code() == CURLE_FTP_QUOTE_ERROR
-// MacOS SDK 10.4 (curl 7.19.1) doesn't define CURLE_QUOTE_ERROR
-#ifdef CURLE_QUOTE_ERROR
- || e.code() == CURLE_QUOTE_ERROR
-#endif
- )
+ else if(e.code() == CURLE_FTP_QUOTE_ERROR)
action = THROWQUOTE;
else if(e.code() == CURLE_FTP_COULDNT_RETR_FILE)
action = THROWNOFILE;