Opened 11 years ago

Closed 6 years ago

#213 closed defect (fixed)

stat() not reporting readonly status correctly

Reported by: Steven Levine Owned by: Yuri Dario
Priority: normal Milestone: libc-0.6.6
Component: libc-backend Version:
Severity: normal Keywords:
Cc:

Description

libc\src\kNIX\os2\b_fsNativeFileStat.c contains a typo that causes it to always report files as read-write.

b_fsNativeFileStat.c#189 reads

if (rc & FILE_READONLY)

and should read

if (fAttributtes & FILE_READONLY)

Attachments (2)

patch-213b.txt (471 bytes) - added by Yuri Dario 6 years ago.
patch-213t.txt (471 bytes) - added by Yuri Dario 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by bird

Component: libclibc-backend
Milestone: libc-0.7

Thanks.

comment:2 Changed 6 years ago by Yuri Dario

Milestone: libc-0.7libc-0.6.6

Changed 6 years ago by Yuri Dario

Attachment: patch-213b.txt added

Changed 6 years ago by Yuri Dario

Attachment: patch-213t.txt added

comment:3 Changed 6 years ago by Yuri Dario

Owner: changed from bird to Yuri Dario
Status: newaccepted

comment:4 Changed 6 years ago by bird

Resolution: fixed
Status: acceptedclosed

Committed fix as well as spelling correction in r3812 (both trees).

Note: See TracTickets for help on using tickets.