Opened 16 years ago

Closed 11 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 11 years ago.
patch-213t.txt (471 bytes ) - added by Yuri Dario 11 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by bird, 14 years ago

Component: libclibc-backend
Milestone: libc-0.7

Thanks.

comment:2 by Yuri Dario, 11 years ago

Milestone: libc-0.7libc-0.6.6

by Yuri Dario, 11 years ago

Attachment: patch-213b.txt added

by Yuri Dario, 11 years ago

Attachment: patch-213t.txt added

comment:3 by Yuri Dario, 11 years ago

Owner: changed from bird to Yuri Dario
Status: newaccepted

comment:4 by bird, 11 years ago

Resolution: fixed
Status: acceptedclosed

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

Note: See TracTickets for help on using tickets.