Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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 OSDir
  TestFile=OSDir : "\" : "xyzzy.xyz"
  OSWrite "" on TestFile
  If Status() else
      OSDelete TestFile
      bDirExists=TRUE$
  end
return

The 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 OSDir
  If OSDir-1,1 Ne "\" then OSDir := "\"
  TestFile=OSDir : "xyzzy.xyz"
  OSWrite "" on TestFile
  If Status() else
      OSDelete TestFile
      bDirExists=TRUE$
  end
return

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

SRP Computer Solutions, Inc.


At 05 OCT 2001 03:47PM Don Merkey wrote:

Couldn't agree more.

Don

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/3e6913531e9864f385256adc004df0cb.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1