소스 검색

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


불러오는 중...
취소
저장