.
D 2003-04-18T05:04:31
J assignee andreas_kupries
J cmimetype text/plain
J comment Version:\sTCL\s8.4.2\n\nOS:\sMac\sOSX\s10.1.5\s(or\sany\splatform\swhere\sTCL_THREADS\sis\s\ndefined)\n\nBehavior:\sDirectory\sentries\sare\snot\sread\scorrectly\swhen\sTCL\s\ncommands\ssuch\sas\sglob\sare\sused.\sInstead\sthe\sresult\sindicates\s\nthat\sno\sentries\scould\sbe\sfound.\n\nExpected\sBehavior:\sglob\s*.o\sshould\sreturn\sa\slist\sof\s.o\sfiles\swithin\sa\s\ndirectory\s(it\sthere\sare\sany\sof\scourse)\n\nThe\slast\sargument\sin\sthe\scall\sto\smemcpy\sin\sthe\sfunction\s\nTclpReaddir\sin\ssource\sfile\stclUnixThrd.c\sis\sincorrect.\sThe\ssizeof\s\noperator\sis\sapplied\sto\sthe\saddress\sof\sthe\sitem\sbeing\scopied\sinstead\s\nof\sthe\sitem\sitself\sand\sconsequently\sonly\sa\sfraction\sof\sthe\s\nnecessary\sdirectory\sinformation\sis\sbeing\scopied.\n\n8.4.2\scode:\n\n\s\s\s\s\s\s\s\smemcpy((VOID\s*)\s&tsdPtr->rdbuf.ent,\s(VOID\s*)\sent,\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\ssizeof(&tsdPtr->rdbuf));\n\nshould\sread:\n\n\s\s\s\s\s\s\s\smemcpy((VOID\s*)\s&tsdPtr->rdbuf.ent,\s(VOID\s*)\sent,\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\ssizeof(tsdPtr->rdbuf));\n
J foundin obsolete:\s8.4.2
J priority 5\sMedium
J resolution None
J status Open
J submitter peterdrexel
J subsystem 49.\sThreading
J title Directory\sRead\sBug\sw/TCL_THREADS
J type Bug
K 723502ffffffffffffffffffffffffffffffffff
U peterdrexel
Z 5aac3f17f081cde1fc1c3657e6ac01a3