|
2026-10-22
| ||
| 17:19 | • Ticket [2976509fff] Bogus field reference in TtyInit() in unix/tclUnixChan.c... artifact: 0ad83dfe73 user: serhiy.storchaka | |
|
2026-10-21
| ||
| 10:03 | • Closed ticket [2976509fff]. artifact: 5cf81e6fbe user: serhiy.storchaka | |
|
2010-03-25
| ||
| 21:59 | • Ticket [2976509fff]: 6 changes artifact: b1fc25ca89 user: dkf | |
| 14:49 | • New ticket [2976509fff]. artifact: 3c7a6cc2b8 user: reeuwijk | |
Bogus field reference in TtyInit() in unix/tclUnixChan.c
Closed / Fixed2976509fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 42 days ago
Descriptionplain2010-03-25 14:49:03
The function TtyInit() in unix/tclUnixChan.c has the following code fragment:
#ifdef USE_SGTTY
if ((iostate.sg_flags & (EVENP | ODDP)) ||
!(iostate.sg_flags & RAW)) {
ttyPtr->stateUpdated = 1;
}
iostate.sg_flags &= EVENP | ODDP;
SET_BITS(iostate.sg_flags, RAW);
#endif /* USE_SGTTY */
However, ttyPtr points to a TtyState, which does not have a stateUpdated field. From the context it looks far more likely that this should simply be:
if( ... ){
stateUpdated = 1;
}
dkfplain2010-03-25 21:59:32
You have a platform which uses sgtty? Wow...
serhiy.storchakawiki2026-10-21 10:03:37
The sgtty code, including this fragment, was removed by [993c21721a] in 8.6.1.
serhiy.storchaka Ticket [2976509fff]: 3 changes
[History diff]2026-10-22 17:19:30
Log in (anonymous is fine) to add a comment.