Opened 18 years ago

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

Download all attachments as: .zip

Change History (6)

comment:1 by bird, 16 years ago

Component: libc → libc-backend
Milestone: → libc-0.7

Thanks.

comment:2 by Yuri Dario, 13 years ago

Milestone: libc-0.7 → libc-0.6.6

by Yuri Dario, 13 years ago

Attachment: patch-213b.txt​ added

by Yuri Dario, 13 years ago

Attachment: patch-213t.txt​ added

comment:3 by Yuri Dario, 13 years ago

Owner: changed from bird to Yuri Dario
Status: new → accepted

comment:4 by bird, 13 years ago

Resolution: → fixed
Status: accepted → closed

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

Note: See TracTickets for help on using tickets.