From db15b3e359ca8ea26e04cb53080f1bae9360e2f5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 17 Mar 2001 05:11:20 +0000 Subject: [PATCH] Accomodate all devices. --- winsup/cygwin/ChangeLog | 4 ++-- winsup/cygwin/syscalls.cc | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2a30f538b..e3bbf6038 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,6 +1,6 @@ -Sat Mar 17 00:05:36 2001 Christopher Faylor +Sat Mar 17 00:10:52 2001 Christopher Faylor - * syscalls.cc (stat_dev): Give devices full read/write. + * syscalls.cc (stat_dev): Give devices full read/write by default. Saturday Mar 17 3:45 2001 Robert Collins diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 141a19883..8bad5f6ed 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1010,8 +1010,7 @@ stat_dev (DWORD devn, int unit, unsigned long ino, struct stat *buf) case FH_PIPER: buf->st_mode = STD_RBITS; break; - case FH_CONIN: - case FH_CONOUT: + default: buf->st_mode = STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH; break; }