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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In