aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-04-08 19:57:36 +0000
committerChristopher Faylor <me@cgf.cx>2005-04-08 19:57:36 +0000
commitc07aaf0f0488a80abf1980712dd440de9ef82e68 (patch)
tree405dd36674469f4fa5d6bbb5d6a5039eb9bc1433 /winsup/cygwin
parent95c136c40a78f97bdd01a20f4e50263b2890636a (diff)
downloadnewlib-c07aaf0f0488a80abf1980712dd440de9ef82e68.zip
newlib-c07aaf0f0488a80abf1980712dd440de9ef82e68.tar.gz
newlib-c07aaf0f0488a80abf1980712dd440de9ef82e68.tar.bz2
* pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/pipe.cc5
2 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 28ee6bc..d2f84e3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-08 Christopher Faylor <cgf@timesys.com>
+
+ * pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.
+
2005-04-07 Corinna Vinschen <corinna@vinschen.de>
* syslog.cc (try_connect_guard): Remove useless conditionalized code.
@@ -237,7 +241,7 @@
cygheap->user.deimpersonate instead of RevertToSelf. Create
impersonation token from primary internal or external token. Set
cygheap->user.curr_primary_token and cygheap->user.current_token
- privileges once here. Drop "failed" and "failed_ptok" labels.
+ privileges once here. Drop "failed" and "failed_ptok" labels.
Drop setting DefaultDacl of process token.
(setegid32): Use hProcToken and hProcImpToken instead of opening
process token. Always reimpersonate afterwards.
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 48499f4..4bdb1e8 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -46,11 +46,6 @@ fhandler_pipe::open (int flags, mode_t mode)
size_t size;
int pid, rwflags = (flags & O_ACCMODE);
- if (flags & O_CREAT)
- {
- set_errno (EACCES);
- return 0;
- }
sscanf (get_name (), "/proc/%d/fd/pipe:[%d]", &pid, (int *) &pipe_hdl);
if (pid == myself->pid)
{