Fix pipes reporting themselves as character devices through fstat(2).

This commit is contained in:
Juhani Krekelä 2021-07-16 01:38:57 +03:00
parent 2d841bae7c
commit 6385ea1957
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}