diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-10 14:47:21 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-10 14:47:21 (GMT) |
commit | 98c2139c92b3dad89f516ced877ba4aa71f0fba6 (patch) | |
tree | ece226b385bf0b07f5910bee412698ac534b425e /unix/tclUnixChan.c | |
parent | c6f08c66238f7dbef5ef9094ef50fe5f4487217a (diff) | |
parent | 12cf9a5e58c41c6b5edcf26083cb3028b8f7715f (diff) | |
download | tcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.zip tcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.tar.gz tcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.tar.bz2 |
Merge 8.6 Use TclHasInternalRep() macro in more places.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 806d6fb..238c3d5 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -1837,7 +1837,7 @@ TclpOpenFileChannel( char channelName[16 + TCL_INTEGER_SPACE]; const Tcl_ChannelType *channelTypePtr; - switch (mode & (O_RDONLY | O_WRONLY | O_RDWR)) { + switch (mode & O_ACCMODE) { case O_RDONLY: channelPermissions = TCL_READABLE; break; |