[bug] +cpm target always writes to user 0.

Post Reply
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

[bug] +cpm target always writes to user 0.

Post by tschak909 »

Any calls using the standard I/O functions will always read/write to user 0, regardless of the active user. Is this intentional?

-Thom
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Re: [bug] +cpm target always writes to user 0.

Post by dom »

It looks like the uid of an FCB is set at open time: either it inherits the current uid or it is extracted from the filename, eg 1/abc.txt should use user area 1.

On a read/write the uid is set to the uid in the FCB that's being used.
Post Reply