kern/181155: [libc] [patch] *access*(2) does not handle invalid amodes properly

Garrett Cooper yaneurabeya at gmail.com
Fri Apr 18 17:30:01 UTC 2014


The following reply was made to PR kern/181155; it has been noted by GNATS.

From: Garrett Cooper <yaneurabeya at gmail.com>
To: bug-followup at freebsd.org, Garrett Cooper <yaneurabeya at gmail.com>
Cc:  
Subject: Re: kern/181155: [libc] [patch] *access*(2) does not handle invalid
 amodes properly
Date: Fri, 18 Apr 2014 10:23:08 -0700

 On Fri, Apr 18, 2014 at 10:18 AM, Garrett Cooper <yaneurabeya at gmail.com> wrote:
 >     Just as a note: I need to add something to the manpage for all
 > affected system calls for this; mknodat and a few other system calls
 > will need manpage updates .. need to evaluate all of the system calls
 > to get a full list of everything affected.
 
     And one more thing: fixing this will make FreeBSD more POSIX
 compliant with this system call (
 http://pubs.opengroup.org/onlinepubs/009695299/functions/access.html
 ), will match the behavior on Linux and NetBSD at least:
 
 The access() function may fail if:
 
 [EINVAL]The value of the amode argument is invalid.
 
 Thanks!
 -Garrett


More information about the freebsd-bugs mailing list