Artifact [b8da80567b]
Not logged in

Artifact b8da80567bbfa6c0c88b8d938f1127829a41408a:

Ticket change [b8da80567b] - Ticket [5bfe3de008e6f7b5|5bfe3de008] <i>^Z appended to sourced VFS files</i> status still Open with 4 other changes by andy 2017-08-09 20:30:51.
D 2017-08-09T20:30:51.505
J icomment The\sunderlying\sproblem\sis\smany\sVFS\simplementations\scall\s[chan\screate\s{read\swrite}]\swithout\sregard\sto\sthe\smode\sargument\sto\s[open].\s\sThe\sI/O\schannel\ssubsystem\sis\sdoing\sthe\sright\sthing\swith\sthe\sinformation\sit's\sbeing\sgiven.\r\n\r\nWhat\scan\sbe\sdone?\s\sAs\smuch\sas\sI'd\slike\sto\ssay\sthat\swe\sshould\sfix\sthe\sTcllib\sVFSes\sto\sbe\sgood\sexamples,\sthis\sis\simpossible\sbecause\sthey\shide\sthe\s[chan\screate]\scall\swithin\scommands\slike\s[tcl::chan::memchan]\sand\s[tcl::chan::variable]\swhich\sdoesn't\saccept\smode\sarguments\sanyway.\r\n\r\nIf\swe\swant\sto\saddress\sthis,\sI\sthink\swe'd\sneed\sa\smagic\scommunication\stunnel\sfrom\sthe\sVFS\s[open]\sto\sthe\srefchan\s[initialize]\sto\savoid\strusting\sthe\suser\scode\sin\sthe\smiddle\sto\spass\sthe\sright\smode\sto\s[chan\screate].\s\sThis\sseems\sfragile\sand\sdistasteful\sto\sme,\sbut\swhat\selse\scan\sbe\sdone?\r\n\r\nMaybe\swe\ssay\sit's\sgood\senough\sthat\swe\sfixed\sthe\sone\sidentified\scase\sof\san\sinadvertent\swrite\shappening\son\swhat\swas\ssupposed\sto\sbe\sa\sread-only\schannel,\sand\sjust\sabandon\sthe\susers\sto\stheir\sfate\sshould\sthey\sexplicitly\sset\san\soutput\sEOF\scharacter\son\sa\sread-only\schannel\sthat\swas\ssecretly\swritable\sdue\sto\sthe\scustom\sVFS\spassing\sthe\swrong\smode\sto\s[chan\screate].\r\n\r\nI\smade\sanother\stest\sprogram\sthat\scycles\sthrough\smany\scombinations\sof\smodes\sand\soperations,\slogging\severything\salong\sthe\sway.\s\sMaybe\sit'll\sbe\shelpful\sfor\sstudying\sthe\soperation\sof\sVFS\sand\srefchan\sin\sgeneral.
J login andy
J mimetype text/plain
J username Andy\sGoth
K 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
U andy
Z 82a775506f28c677d7d7c959388efb06