#924 Hostemu (execio) can't read read-only file in windows 7

v4.1
closed
Mark Miesfeld
5
2012-08-14
2010-08-07
hex
No

Using oorexx 4.01 64bit, built from trunk 20 of june, on windows 7 64 bit
I tested this short rexx and HOSTEMU (execio) with read-only file as input and get Rc(20). Removing the read-only attribute on input file the program works

/ Rexx/
File="with read only attribute set"
address hostemu "execio * DISKR "file "(STEM infile. FINIS"

say "* Lines read" infile.0

do ix = 1 to infile.0
say infile.ix
end

::requires 'hostemu' library

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2010-08-09

    Committed revision 6090.

    This appears to have been a problem with the interpreter reading the first line of a read-only file rather than a hostemu problem.

    At least after commit 6090 it works for me, whereas it failed for me before the commit.

     
  • hex
    hex
    2010-08-10

    Well, did a new compile from trunk (commit6091) and still get RC 20 from hostemu (execio) on a read only file

     
  • Mark Miesfeld
    Mark Miesfeld
    2010-08-10

    Okay, I re-opened it and I'll take a look on a Windows 7 machine.

    Since it failed for me on XP and then worked after the commit, I didn't bother to test on Windows 7.

    By the way, what is the name of the file you are using and how many lines are in it?

     
  • Mark Miesfeld
    Mark Miesfeld
    2010-08-10

    Sorry, I had screwed my test up, and it shouldn't have passed. This fixes it:

    Committed revision 6092.

     
  • hex
    hex
    2010-08-10

    Ok. recompiled at commit 6093.
    Confirm hostemu (execio) works with read-only file on 64bit win7 now
    Thanks

     
  • Mark Miesfeld
    Mark Miesfeld
    2010-09-08

    Put into group 4.0.2 to signal that this fix should go into the next bug fix release. This will actually be the 4.1.0 release.

     
  • Mark Miesfeld
    Mark Miesfeld
    2010-09-11

    I was going to put this fix in the 4.1.0 branch, but 4.0.1 doesn't have hostemu, so I've changed the group to vX.X.X

     


Anonymous


Cancel   Add attachments