ソースを参照

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



読み込み中…
キャンセル
保存