瀏覽代碼

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);


Loading…
取消
儲存