소스 검색

Fix listing files directly under /

master
Arun Prakash Jana 5 년 전
부모
커밋
12df1ab083
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      src/nnn.c

+ 4
- 0
src/nnn.c 파일 보기

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



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