Skip to content

Commit

Permalink
[CHORE] Symlink err bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nots1dd committed Aug 18, 2024
1 parent c36299e commit ed99ee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ void get_file_info(WINDOW *info_win, const char *path, const char *filename) {
ssize_t len;

snprintf(full_path, PATH_MAX, "%s/%s", path, filename);
truncate_symlink_name(full_path);

// Get file information using lstat to handle symlinks
if (lstat(full_path, &file_stat) == -1) {
Expand Down

0 comments on commit ed99ee4

Please sign in to comment.