]> Sergey Matveev's repositories - nnn.git/commitdiff
Emulate ls -F completely including sockets and FIFOs
authorlostd <lostd@2f30.org>
Fri, 31 Oct 2014 23:55:26 +0000 (01:55 +0200)
committerlostd <lostd@2f30.org>
Fri, 31 Oct 2014 23:55:26 +0000 (01:55 +0200)
noice.c

diff --git a/noice.c b/noice.c
index 81df90752affe549dcdb038ea7992ea1f73b8f1e..a9f08c4a136af2400af58575127a4dd7cffef572 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -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--;