* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user