Bug 222385 - fix open(2) flags parser
Summary: fix open(2) flags parser
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: strace
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-11 23:00 UTC by Dmitry V. Levin
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.5.15-1
Clone Of:
Environment:
Last Closed: 2007-01-17 03:05:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
openmodes.c (244 bytes, text/plain)
2007-01-11 23:00 UTC, Dmitry V. Levin
no flags Details
strace-alt-open.diff (6.47 KB, patch)
2007-01-11 23:09 UTC, Dmitry V. Levin
no flags Details | Diff

Description Dmitry V. Levin 2007-01-11 23:00:48 UTC
Current open(2) flags parser fails to decode O_ACCMODE properly.

Reproducer: strace -e trace=open,fcntl,fcntl64 ./openmodes

Comment 1 Dmitry V. Levin 2007-01-11 23:00:48 UTC
Created attachment 145407 [details]
openmodes.c

Comment 2 Dmitry V. Levin 2007-01-11 23:09:21 UTC
Created attachment 145408 [details]
strace-alt-open.diff

Proposed fix.

Comment 3 Roland McGrath 2007-01-11 23:13:20 UTC
go ahead and commit that upstream

Comment 4 Roland McGrath 2007-01-17 03:05:47 UTC
4.5.15 in rawhide and in updates for fc5 and fc6 fixes this.


Note You need to log in before you can comment on or make changes to this bug.