Procházet zdrojové kódy

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 před 18 roky
rodič
revize
46fb0c2419
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      cli/add.c

+ 1
- 1
cli/add.c Zobrazit soubor

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


Načítá se…
Zrušit
Uložit