diff options
author | Andreas Bille <abi@openoffice.org> | 2002-10-24 10:55:41 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-10-24 10:55:41 +0000 |
commit | 51d20be3531a1c7b6731095c3ef47352328eaeee (patch) | |
tree | 00988c79e462112aaac2dce2618a8cee80bad7c3 /ucb | |
parent | 711a02ec9518cb8cc02a079b61be107597ae9ba6 (diff) |
#104477# forgotten to clear reused direntry
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontent.cxx | 9 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 30 |
2 files changed, 18 insertions, 21 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index 21c90fc4d5b0..b9db030963fe 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ftpcontent.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: abi $ $Date: 2002-10-23 08:00:01 $ + * last change: $Author: abi $ $Date: 2002-10-24 11:55:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -426,9 +426,8 @@ Any SAL_CALL FTPContent::execute( ucbhelper::cancelCommandExecution( aRet, Environment); - } else if(action == THROWQUOTE) { - - } else if(action == THROWGENERAL) { + } else if(action == THROWQUOTE || + action == THROWGENERAL) { ucbhelper::cancelCommandExecution( IOErrorCode_GENERAL, Sequence<Any>(0), diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 406ab768daa8..6d4bf30dd54a 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ftpurl.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: abi $ $Date: 2002-10-23 08:00:09 $ + * last change: $Author: abi $ $Date: 2002-10-24 11:55:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -544,23 +544,18 @@ std::vector<FTPDirentry> FTPURL::list( sal_Bool(aDirEntry.m_nMode&INETCOREFTP_FILEMODE_ISDIR); switch(nMode) { case OpenMode::DOCUMENTS: - if(!isDir) { + if(!isDir) + resvec.push_back(aDirEntry); + break; + case OpenMode::FOLDERS: + if(isDir) + resvec.push_back(aDirEntry); + break; + default: resvec.push_back(aDirEntry); - aDirEntry.clear(); - } - break; - case OpenMode::FOLDERS: - if(isDir) { - resvec.push_back(aDirEntry); - aDirEntry.clear(); - } - break; - default: - resvec.push_back(aDirEntry); - aDirEntry.clear(); }; } - + aDirEntry.clear(); p1 = p2 + 1; } @@ -752,11 +747,14 @@ void FTPURL::mkdir(bool ReplaceExisting) const CURL *curl = m_pFCP->handle(); SET_CONTROL_CONTAINER; curl_easy_setopt(curl,CURLOPT_NOBODY,TRUE); // no data => no transfer + curl_easy_setopt(curl,CURLOPT_QUOTE,0); // post request curl_easy_setopt(curl,CURLOPT_POSTQUOTE,slist); rtl::OUString url(parent(true)); + if(1+url.lastIndexOf(sal_Unicode('/')) != url.getLength()) + url += rtl::OUString::createFromAscii("/"); SET_URL(url); CURLcode err = curl_easy_perform(curl); |