Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4585 closed Bug (fixed)

use full path when download directory is specified

Reported by: dyogene Owned by: jordan
Priority: Normal Milestone: 2.50
Component: CLI Version: 2.42
Severity: Minor Keywords: backport-2.4x


transmission-cli provides an option ('-w') to specify the download directory. However, if the value provided is a relative path, this value is stored "as is" in the data associated to the torrent download (e.g. on my Linux in $HOME/.config/transmission/resume/*.resume).

As a result, if, for example, the download is interrupted and reloaded from another directory and/or from the GUI, the resume operation does not work properly and the session switch to an error status.

I attached a patch to this ticket. It seems to work, but i am not a 100% sure it fits transmission coding standards or its code structure, so I'll leave it here for you to review.

Seen on Archlinux.

Attachments (1)

change_workdir_to_realpath-v1.patch (1.3 KB) - added by dyogene 11 years ago.
Proposed patch - V1

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by dyogene

Proposed patch - V1

comment:1 Changed 11 years ago by jordan

  • Milestone changed from None Set to 2.50
  • Owner set to jordan
  • Status changed from new to assigned
  • Version changed from 2.42+ to 2.42

comment:2 Changed 11 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed

Looks good to me. Thanks for the patch!

Committed in r13030.

comment:3 Changed 11 years ago by jordan

  • Keywords backport-2.4x added

comment:4 Changed 11 years ago by dyogene

My pleasure!

Note: See TracTickets for help on using tickets.