Opened 10 years ago

Closed 6 years ago

#213 closed defect (fixed)

stat() not reporting readonly status correctly

Reported by: stevenhl Owned by: ydario
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 ydario 6 years ago.
patch-213t.txt (471 bytes) - added by ydario 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by bird

  • Component changed from libc to libc-backend
  • Milestone set to libc-0.7

Thanks.

comment:2 Changed 6 years ago by ydario

  • Milestone changed from libc-0.7 to libc-0.6.6

Changed 6 years ago by ydario

Changed 6 years ago by ydario

comment:3 Changed 6 years ago by ydario

  • Owner changed from bird to ydario
  • Status changed from new to accepted

comment:4 Changed 6 years ago by bird

  • Resolution set to fixed
  • Status changed from accepted to closed

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

Note: See TracTickets for help on using tickets.