From 6385ea19573610abed0da89dfbee87761c21056a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Fri, 16 Jul 2021 01:38:57 +0300 Subject: [PATCH] Fix pipes reporting themselves as character devices through fstat(2). --- kernel/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/pipe.cpp b/kernel/pipe.cpp index ec426b91..c5177070 100644 --- a/kernel/pipe.cpp +++ b/kernel/pipe.cpp @@ -711,7 +711,7 @@ PipeNode::PipeNode(dev_t dev, uid_t owner, gid_t group, mode_t mode) this->ino = (ino_t) this; this->stat_uid = owner; this->stat_gid = group; - this->type = S_IFCHR; + this->type = S_IFIFO; this->stat_mode = (mode & S_SETABLE) | this->type; supports_iovec = true; }