Ver código fonte

Fix listing files directly under /

master
Arun Prakash Jana 5 anos atrás
pai
commit
12df1ab083
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      src/nnn.c

+ 4
- 0
src/nnn.c Ver arquivo

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


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

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




||||||
x
 
000:0
Carregando…
Cancelar
Salvar