Bug 222385

Summary: fix open(2) flags parser
Product: [Fedora] Fedora Reporter: Dmitry V. Levin <ldv>
Component: straceAssignee: Roland McGrath <roland>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.5.15-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-17 03:05:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
openmodes.c
none
strace-alt-open.diff none

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.