* fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes.

* fhandler_socket.cc (fhandler_socket.cc::fstat): Set S_IFSOCK.
This commit is contained in:
Christopher Faylor
2002-06-24 02:23:14 +00:00
parent eecef29f50
commit 035bfbddf5
3 changed files with 19 additions and 5 deletions

View File

@ -248,7 +248,11 @@ fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
{
int res = fhandler_base::fstat (buf, pc);
if (!res)
buf->st_ino = (ino_t) get_handle ();
{
buf->st_mode &= ~_IFMT;
buf->st_mode |= _IFSOCK;
buf->st_ino = (ino_t) get_handle ();
}
return res;
}