diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-17 05:06:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-17 05:06:14 +0000 |
commit | 5bb22c6b1de55f507460a1ac8b2a0c39b9245cf0 (patch) | |
tree | e3f38f63b7e24e9abb6c8c60e986ee13404871c3 /winsup | |
parent | c0c9de3c6656d07a2f314034b072ed35a88747fa (diff) | |
download | newlib-5bb22c6b1de55f507460a1ac8b2a0c39b9245cf0.zip newlib-5bb22c6b1de55f507460a1ac8b2a0c39b9245cf0.tar.gz newlib-5bb22c6b1de55f507460a1ac8b2a0c39b9245cf0.tar.bz2 |
* syscalls.cc (stat_dev): Give devices full read/write.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 95c5d4b..2a30f53 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * thread.cc (MTinterface::CreateCond): Check for null attr pointer. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 428ee28..141a198 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1005,14 +1005,14 @@ stat_dev (DWORD devn, int unit, unsigned long ino, struct stat *buf) switch (devn) { case FH_PIPEW: - buf->st_mode = STD_WBITS; + buf->st_mode = STD_WBITS | S_IWGRP | S_IWOTH; break; case FH_PIPER: buf->st_mode = STD_RBITS; break; case FH_CONIN: case FH_CONOUT: - buf->st_mode = STD_RBITS | STD_WBITS; + buf->st_mode = STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH; break; } |