summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
commit62a628d51f30fb7754f907d87ef28b3e8a9938a3 (patch)
tree01f7adcaadf8875893ea59d7b147f3d465b7886a /win/tclWinPipe.c
parentf8cdc473a5a725577e81aaa05b166b710559c62a (diff)
parent9ac22a9200db4d034922f3f15194cc1f3568e230 (diff)
downloadtcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.zip
tcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.tar.gz
tcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index d587dda..3f0269c 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -538,7 +538,7 @@ TclpOpenFile(
* Map the access bits to the NT access mode.
*/
- switch (mode & (O_RDONLY | O_WRONLY | O_RDWR)) {
+ switch (mode & O_ACCMODE) {
case O_RDONLY:
accessMode = GENERIC_READ;
break;