* syscalls.cc (stat_dev): Give devices full read/write.

This commit is contained in:
Christopher Faylor 2001-03-17 05:06:14 +00:00
parent c0c9de3c66
commit 5bb22c6b1d
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sat Mar 17 00:05:36 2001 Christopher Faylor <cgf@cygnus.com>
* syscalls.cc (stat_dev): Give devices full read/write.
Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com> Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (MTinterface::CreateCond): Check for null attr pointer. * thread.cc (MTinterface::CreateCond): Check for null attr pointer.

View File

@ -1005,14 +1005,14 @@ stat_dev (DWORD devn, int unit, unsigned long ino, struct stat *buf)
switch (devn) switch (devn)
{ {
case FH_PIPEW: case FH_PIPEW:
buf->st_mode = STD_WBITS; buf->st_mode = STD_WBITS | S_IWGRP | S_IWOTH;
break; break;
case FH_PIPER: case FH_PIPER:
buf->st_mode = STD_RBITS; buf->st_mode = STD_RBITS;
break; break;
case FH_CONIN: case FH_CONIN:
case FH_CONOUT: case FH_CONOUT:
buf->st_mode = STD_RBITS | STD_WBITS; buf->st_mode = STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH;
break; break;
} }