ソースを参照

Fix the '--topdir' option for single file torrents without a top directory.

Such torrents were saved as 'name/name' instead of 'name'. The option broke
in rev253.

Patch from borg@uu3.net.
master
Richard Nyberg 18年前
コミット
46fb0c2419
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      cli/add.c

+ 1
- 1
cli/add.c ファイルの表示

@@ -81,7 +81,7 @@ cmd_add(int argc, char **argv)

iob = buf_init(PATH_MAX);
buf_write(&iob, dir, dirlen);
if (topdir) {
if (topdir && !mi_simple(mi)) {
size_t tdlen;
const char *td =
benc_dget_mem(benc_dget_dct(mi, "info"), "name", &tdlen);


読み込み中…
キャンセル
保存