cex

C/Curses file EXplorer
git clone git://git.wimdupont.com/cex.git
Log | Files | Refs | README | LICENSE

commit d824aa34550cd10f643290d7aa2a05380bb9c28d
parent cefa38ba70ff650dd16408b693bce626ce1610ec
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri, 10 Apr 2026 23:15:55 +0200

restore get_fullpath with count dependency

Diffstat:
Mcex.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/cex.c b/cex.c @@ -491,11 +491,7 @@ set_win_files(DirWin *dirwin) dirwin->filecount = (int) count + 1; dirwin->winfiles[count].selected = is_selected(dirwin, count); if (ent->d_type == DT_LNK) { - if (strcmp(dirwin->path, "/") == 0) - snprintf(linkpath, sizeof(linkpath), "/%s", ent->d_name); - else if (snprintf(linkpath, sizeof(linkpath), "%s/%s", - dirwin->path, ent->d_name) >= (int) sizeof(linkpath)) - linkpath[0] = '\0'; + get_fullpath(linkpath, dirwin, count); dirwin->winfiles[count].link_valid = (linkpath[0] != '\0' && access(linkpath, F_OK) == 0); } else