Emulate ls -F completely including sockets and FIFOs

This commit is contained in:
lostd 2014-11-01 01:55:26 +02:00
parent cae14a8208
commit 12da2ff028
1 changed files with 6 additions and 0 deletions

View File

@ -409,6 +409,12 @@ printent(struct entry *ent, int active)
} else if (S_ISLNK(ent->mode)) {
cm = '@';
maxlen--;
} else if (S_ISSOCK(ent->mode)) {
cm = '=';
maxlen--;
} else if (S_ISFIFO(ent->mode)) {
cm = '|';
maxlen--;
} else if (ent->mode & S_IXUSR) {
cm = '*';
maxlen--;