fopen: do not require read access when opening a file for append only.

This can cause an error if the file's permissions deny read access.
This commit is contained in:
Stephen Heumann 2020-02-17 19:49:18 -06:00
parent 717cf99071
commit e9de42d6c4

View File

@ -763,10 +763,9 @@ OSname equ 11 pointer to the GS/OS file name
lda [type] make sure the file type is in ['a','r','w'] lda [type] make sure the file type is in ['a','r','w']
and #$00FF and #$00FF
sta fileType sta fileType
ldx #$0003 ldx #$0002
cmp #'a' cmp #'a'
beq cn1 beq cn1
ldx #$0002
cmp #'w' cmp #'w'
beq cn1 beq cn1
ldx #$0001 ldx #$0001