~ubuntu-branches/debian/squeeze/lftp/squeeze

« back to all changes in this revision

Viewing changes to src/commands.cc

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2010-04-09 23:45:53 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409234553-7ay83rk2aas3r7g3
Tags: 4.0.6-1
* new upstream release from 2010-03-25
  - fixes proftp problem. closes: Bug#570861
* switched to to dpkg-source 3.0 (quilt)
* pget help and lftp -h mentions -c since some time
  closes: Bug#377043
* lftp -c exists.:) closes: Bug#401572

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
19
 */
20
20
 
21
 
/* $Id: commands.cc,v 1.297 2009/08/11 07:05:50 lav Exp $ */
 
21
/* $Id: commands.cc,v 1.298 2010/03/18 08:09:38 lav Exp $ */
22
22
 
23
23
#include <config.h>
24
24
 
3297
3297
      dst_peer=FileCopyPeerFDStream::NewPut(dst,cont||target_region_begin>0);
3298
3298
   else
3299
3299
      dst_peer=new FileCopyPeerFA(&dst_url,FA::STORE);
3300
 
   dst_peer->AutoRename(auto_rename);
 
3300
   dst_peer->AutoRename(auto_rename && ResMgr::QueryBool("xfer:auto-rename",0));
3301
3301
   if(!cont && (target_region_begin>0 || target_region_end!=FILE_END))
3302
3302
      dst_peer->SetRange(target_region_begin,target_region_end);
3303
3303