Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 2009 11:50:37 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern vfs_lookup.c
Message-ID:  <200911101150.nAABoq5u061123@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-11-10 11:50:37 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_lookup.c 
  Log:
  SVN rev 199137 on 2009-11-10 11:50:37Z by kib
  
  When rename("a", "b/.") is performed, target namei() call returns
  dvp == vp. Rename syscall does not check for the case, and at least
  ufs_rename() cannot deal with it. POSIX explicitely requires that both
  rename(2) and rmdir(2) return EINVAL when any of the pathes end in "/.".
  
  Detect the slashdot lookup for RENAME or REMOVE in lookup(), and return
  EINVAL.
  
  Reported by:    Jim Meyering <jim meyering net>
  Tested by:      simon, pho
  MFC after:      1 week
  
  Revision  Changes    Path
  1.133     +6 -0      src/sys/kern/vfs_lookup.c



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