浏览代码

Fix listing files directly under /

master
Arun Prakash Jana 5 年前
父节点
当前提交
12df1ab083
找不到此签名对应的密钥 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);



||||||
x
 
000:0
正在加载...
取消
保存