From 5188def9e5ce3030b495513510ec0e57d8e0f656 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 4 Dec 2023 20:42:31 +0100 Subject: [PATCH] stat: Recognize sockets properly --- apps/stat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/stat.cpp b/apps/stat.cpp index 0aa9478b..18dc2728 100644 --- a/apps/stat.cpp +++ b/apps/stat.cpp @@ -14,6 +14,7 @@ static const char* file_type(mode_t mode) case S_IFBLK: return "block special device"; case S_IFLNK: return "symbolic link"; case S_IFIFO: return "pipe"; + case S_IFSOCK: return "socket"; default: return "unknown file type"; } }