Differences From Artifact [25675dd2b5]:
- File generic/tclIOUtil.c — part of check-in [5f6c7373c1] at 2024-05-28 12:38:44 on branch core-8-6-branch — Make TclGlob() a static function. Sentinel/indenting/comment improvements (all backported from 8.7) (user: jan.nijtmans size: 133200) [more...]
To Artifact [5a8870e5fb]:
- File generic/tclIOUtil.c — part of check-in [ce638746db] at 2024-09-13 11:57:41 on branch bug-02d5d65d70adab97 — TclFSCwdIsNative may return wrong result when cwd is not initialized in TSD (if pwd/cd never called for this thread) (user: sebres size: 133325)
| ︙ | |||
464 465 466 467 468 469 470 471 472 473 474 475 476 477 | 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 | + + + + + |
tsdPtr->initialized = 0;
}
int
TclFSCwdIsNative(void)
{
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey);
/* if not yet initialized - ensure we'll once obtain cwd */
if (!tsdPtr->cwdPathEpoch) {
Tcl_FSGetCwd(NULL);
}
if (tsdPtr->cwdClientData != NULL) {
return 1;
} else {
return 0;
}
}
|
| ︙ |