瀏覽代碼

Another part that needs special handling for root

master
lostd 10 年之前
父節點
當前提交
f05f98e4fe
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      noice.c

+ 5
- 1
noice.c 查看文件

@@ -468,7 +468,11 @@ nochange:

name = dents[cur].name;

asprintf(&pathnew, "%s/%s", path, name);
/* Handle root case */
if (strcmp(path, "/") == 0)
asprintf(&pathnew, "/%s", name);
else
asprintf(&pathnew, "%s/%s", path, name);

DPRINTF_S(name);
DPRINTF_S(pathnew);


Loading…
取消
儲存