瀏覽代碼

Check if file is accessible

master
Arun Prakash Jana 5 年之前
父節點
當前提交
67994ff4b2
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c 查看文件

@@ -5807,7 +5807,7 @@ nochange:
rundir[0] = '\0';
}

if (newpath[0])
if (newpath[0] && !access(newpath, F_OK))
xstrlcpy(lastname, xbasename(newpath), NAME_MAX+1);
else if (ndents)
copycurname();


Loading…
取消
儲存