diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-06-19 15:10:50 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-06-19 15:10:50 +0000 |
commit | 8510dd4545d6a58f7421bfc50269bc1a9b0584a5 (patch) | |
tree | 35cb25695a82c0e9d96821ac5d8c6c8df9c46ec7 /ucb/source/ucp | |
parent | e3f7fd7fd4c82dbb81b727fca5562bb3962dd71b (diff) |
INTEGRATION: CWS ucbfixes02 (1.90.34); FILE MERGED
2007/06/12 08:14:51 kso 1.90.34.2: RESYNC: (1.90-1.91); FILE MERGED
2007/05/30 15:34:14 kso 1.90.34.1: #113777# - generate error when moving/copying non-existing file.
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 7746d425bff3..aedecd385cea 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -4,9 +4,9 @@ * * $RCSfile: shell.cxx,v $ * - * $Revision: 1.91 $ + * $Revision: 1.92 $ * - * last change: $Author: ihi $ $Date: 2007-06-05 17:57:51 $ + * last change: $Author: kz $ $Date: 2007-06-19 16:10:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1194,9 +1194,6 @@ shell::move( sal_Int32 CommandId, osl::FileBase::RC nError; rtl::OUString dstUnqPath( dstUnqPathIn ); - if( dstUnqPath == srcUnqPath ) // Nothing left to be done - return; - switch( NameClash ) { case NameClash::KEEP: @@ -1407,9 +1404,6 @@ shell::copy( osl::FileBase::RC nError; rtl::OUString dstUnqPath( dstUnqPathIn ); - if( dstUnqPath == srcUnqPath ) // Nothing left to be done - return; - // Resolve symbolic links within the source path. If srcUnqPath denotes a // symbolic link (targeting either a file or a folder), the contents of the // target is copied (recursively, in the case of a folder). However, if @@ -1436,6 +1430,7 @@ shell::copy( } else { rslvdSrcUnqPath = srcUnqPath; } + sal_Bool isDocument = type != osl::FileStatus::Directory && type != osl::FileStatus::Volume; sal_Int32 IsWhat = isDocument ? -1 : 1; |