From 614c8b3360d596c46d27b40e19a52698b3506c8c Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 30 May 2023 21:31:11 +0000 Subject: Let's see if this helps --- win/tclWinChan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 545aa2d..0fc7455 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -1004,10 +1004,6 @@ FileGetOptionProc( */ if ((len > 1) && (strncmp(optionName, "-stat", len) == 0)) { - return TCL_OK; - } - - if (valid) { Tcl_Obj *dictObj = StatOpenFile(infoPtr); const char *dictContents; Tcl_Size dictLength; @@ -1030,6 +1026,10 @@ FileGetOptionProc( Tcl_DecrRefCount(dictObj); return TCL_OK; } + + if (valid) { + return TCL_OK; + } return Tcl_BadChannelOption(interp, optionName, "stat"); } -- cgit v0.12