[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM
From:       Al Viro <viro () ZenIV ! linux ! org ! uk>
Date:       2016-07-09 2:52:30
Message-ID: 20160709025230.GR14480 () ZenIV ! linux ! org ! uk
[Download RAW message or body]

On Fri, Jul 08, 2016 at 11:59:50AM -0400, Oleg Drokin wrote:

> "If path names a symbolic link, mkdir() shall fail and set errno to [EEXIST]."
> 
> This sounds pretty straightforward to me, no?
> Since it does not matter that we do not have write permissions here, because
> the name already exists.

When more than one condition applies, we have every right to return any of
them.  POSIX does *NOT* specify the order of checks.  Never had.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic