Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1439879

Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM
Date 2016-07-09 05:00 +0200
Message-ID <rSQEN-5fb-3@gated-at.bofh.it> (permalink)
References <rSt5w-6q1-7@gated-at.bofh.it> <rSBPr-3Z6-1@gated-at.bofh.it> <rSFJn-6un-3@gated-at.bofh.it> <rSGm6-6Ir-19@gated-at.bofh.it> <rSGvM-71i-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 03:50 +0200
  Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Jeff Layton <jlayton@poochiereds.net> - 2016-07-08 13:10 +0200
    Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 17:20 +0200
      Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Jeff Layton <jlayton@poochiereds.net> - 2016-07-08 18:00 +0200
        Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 18:10 +0200
          Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Jeff Layton <jlayton@poochiereds.net> - 2016-07-08 18:20 +0200
            Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 18:30 +0200
          Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-09 05:00 +0200
            Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Al Viro <viro@ZenIV.linux.org.uk> - 2016-07-09 05:20 +0200
          Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Al Viro <viro@ZenIV.linux.org.uk> - 2016-07-09 05:00 +0200
        Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-08 18:10 +0200
          Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 18:20 +0200
            Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-08 22:50 +0200
              Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-08 23:50 +0200
                Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM Al Viro <viro@ZenIV.linux.org.uk> - 2016-07-09 05:20 +0200
                Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-09 05:50 +0200
                Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-13 21:10 +0200
  Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-08 23:00 +0200
    Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-09 00:00 +0200
      Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-21 22:40 +0200
        Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-22 04:00 +0200
          Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-22 08:40 +0200
            Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-22 13:00 +0200
              Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM Oleg Drokin <green@linuxhacker.ru> - 2016-07-22 17:20 +0200
                Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of EPERM "J. Bruce Fields" <bfields@redhat.com> - 2016-07-22 20:00 +0200
                [PATCH 6/7] nfsd: clean up bad-type check in nfsd_create_locked "J. Bruce Fields" <bfields@redhat.com> - 2016-07-22 20:00 +0200
                [PATCH 1/7] nfsd: Make creates return EEXIST instead of EACCES "J. Bruce Fields" <bfields@redhat.com> - 2016-07-22 20:00 +0200
                [PATCH 7/7] nfsd: drop unnecessary MAY_EXEC check from create "J. Bruce Fields" <bfields@redhat.com> - 2016-07-22 20:00 +0200
      Re: [PATCH] nfsd: Make creates return EEXIST correctly instead of  EPERM "J. Bruce Fields" <bfields@fieldses.org> - 2016-07-21 22:40 +0200

csiph-web