From 27f8495dd59a4d5827040ab599ef457ee9e21af6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 23 Oct 2013 09:58:12 +0000 Subject: [PATCH] * fhandler.cc (fhandler_base::fstat): Drop FH_FULL case to align /dev/full permissions to Linux. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.cc | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 30d0c6726..b25956a5e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-10-23 Corinna Vinschen + + * fhandler.cc (fhandler_base::fstat): Drop FH_FULL case to align + /dev/full permissions to Linux. + 2013-10-22 Christopher Faylor * fhandler.h (fhandler_base::cleanup): Mark as extern rather than diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index cae50e53d..2c41f31ae 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1250,9 +1250,6 @@ fhandler_base::fstat (struct stat *buf) case FH_PIPER: buf->st_mode = S_IFIFO | S_IRUSR; break; - case FH_FULL: - buf->st_mode = S_IFCHR | S_IRUSR | S_IWUSR | S_IWGRP | S_IWOTH; - break; default: buf->st_mode = S_IFCHR | STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH; break;