With Red Hat Enterprise Linux 6, the open() syscall can fail with EACCES but still create a file in NFS4 filesystems

Solution Verified - Updated -

Issue

  • Using the open() syscall results in a new file being created, but it returns the value "-1". The following is the relevant source section:
    fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0371); 

Environment

  • Red Hat Enterprise Linux 6
    • nfs4 mounted filesystems

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content