Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2014 17:30:01 GMT
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/181155: [libc] [patch] *access*(2) does not handle invalid amodes properly
Message-ID:  <201404181730.s3IHU1GB027144@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/181155; it has been noted by GNATS.

From: Garrett Cooper <yaneurabeya@gmail.com>
To: bug-followup@freebsd.org, Garrett Cooper <yaneurabeya@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404181730.s3IHU1GB027144>