Show target file size in list mode

This commit is contained in:
Arun Prakash Jana 2020-02-08 17:45:49 +05:30
parent 1d60b6a475
commit 72668069ed
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -4369,7 +4369,7 @@ static int dentfill(char *path, struct entry **dents)
if (!flags && dp->d_type == DT_LNK) {
/* Do not add sizes for links */
dentp->mode = (sb.st_mode & ~S_IFMT) | S_IFLNK;
dentp->size = 0;
dentp->size = g_listpath ? sb.st_size : 0;
} else {
dentp->mode = sb.st_mode;
dentp->size = sb.st_size;