Bug #36

avatar

test/torrent-upload: possibly broken relative $TORRENT path handling

Added by Mikhail Yakshin 2929 days ago. Updated 2928 days ago.

Status:New Start:12/11/2009
Priority:Normal Due date:
Assigned to:avatarSergey Matveev % Done:

0%

Category:-
Target version:3.1

Description

Current implementation of test/torrent-upload includes the following logic:

  1. pushdq $SHARE_DIR/firmwares
  2. a call to ctorrent for downloading with $TORRENT argument, where $TORRENT is a relative path that would be referenced from $SHARE_DIR/firmwares
  3. popdq
  4. a call to ctorrent for seeding with the same $TORRENT argument, but it will be referenced from other directory

Most probably this construct will fail in case of using relative path in $TORRENT argument.

History

Updated by Andrey Sapronov 2928 days ago

avatar

Mikhail Yakshin wrote:

Most probably this construct will fail in case of using relative path in $TORRENT argument.

I checked this today - it's strange but test works correctly (relative path is valid).

Updated by Mikhail Yakshin 2928 days ago

avatar

Will it work if we'll change "pushd" to "cd" and drop "popd"?

Also available in: Atom PDF