Procházet zdrojové kódy

Fix listing files directly under /

master
Arun Prakash Jana před 5 roky
rodič
revize
12df1ab083
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      src/nnn.c

+ 4
- 0
src/nnn.c Zobrazit soubor

@@ -6301,6 +6301,10 @@ static char *make_tmp_tree(char **paths, ssize_t entries, const char *prefix)
/* Points right after the base tmp dir */
tmp += 10;

/* handle the case where files are directly under / */
if (!prefix[1] && (prefix[0] == '/'))
len = 0;

if (!mkdtemp(tmpdir)) {
free(tmpdir);



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