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

View file

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