Fix symlink to dir indicator in detail mode

This commit is contained in:
Arun Prakash Jana 2020-04-13 20:42:19 +05:30
parent 35c3497364
commit c58434d078
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3305,7 +3305,8 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel)
break;
case S_IFLNK:
ln = TRUE;
ind1 = ind2 = '@'; // fallthrough
ind1 = '@';
ind2 = (ent->flags & DIR_OR_LINK_TO_DIR) ? '/' : '@'; // fallthrough
case S_IFSOCK:
if (!ind1)
ind1 = ind2 = '='; // fallthrough