Problem with RDKModuleInstall (OpenInsight)
At 05 OCT 2001 10:11:19AM Don Merkey wrote:
Discovered a problem with RDKModuleInstall in the Copy OSFILE section.
It calls this routine to check for the existence of a directory.
TestDirExists:
Swap ".\" with TargetDir : "\" in OSDirTestFile=OSDir : "\" : "xyzzy.xyz"OSWrite "" on TestFileIf Status() elseOSDelete TestFilebDirExists=TRUE$endreturnThe result is that TestFile gets the value "c:\revsoft\oinsight\\xyzzy.xyz".
The result of the OSWrite is that a zero byte file named REVBOOT is written to the c:\revsoft\oinsight directory.
Apparently, oswrite defaults to REVBOOT when presented a blank directory.
This code fixes the problem.
TestDirExists:
Swap ".\" with TargetDir : "\" in OSDirIf OSDir-1,1 Ne "\" then OSDir := "\"TestFile=OSDir : "xyzzy.xyz"OSWrite "" on TestFileIf Status() elseOSDelete TestFilebDirExists=TRUE$endreturn
At 05 OCT 2001 10:44AM Mike Ruane wrote:
Don-
This fix is already in OI 3.7.5, which is in beta. Don Bakke brought it to our attention.
Thanks-
Mike Ruane
At 05 OCT 2001 01:18PM Don Merkey wrote:
Mike,
My 3.7.5 beta does not contain a fix for this problem. As a matter of fact, the example of the problem code was copied directly from 3.7.5.
Also, if someone had posted the information earlier that this problem existed, it would have saved me a lot of time tracking down the problem.
Don
At 05 OCT 2001 03:13PM Donald Bakke wrote:
Don,
Look on the bright side, this just goes to show that Don's are some of the brightest bulbs on this tree!
dbakke@srpcs.com
At 05 OCT 2001 03:47PM Don Merkey wrote:
Couldn't agree more.
Don