Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 22:19:52 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/gen getcwd.3
Message-ID:  <201005052220.o45MKAlD088424@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-05-05 22:19:52 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    lib/libc/gen         getcwd.3 
  Log:
  SVN rev 207685 on 2010-05-05 22:19:52Z by jilles
  
  MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked.
  
  POSIX permits but does not require checking access on the current and parent
  directories.
  
  Because various programs do not like it if getcwd(3) fails, it seems best
  to avoid checking access as much as possible. There are various reports in
  GNATS about this (search for getcwd).
  
  Our getcwd(3) implementation first queries the kernel for the pathname
  directly, which does not check any permissions but sometimes fails, and then
  falls back to reading all parent directories for the names.
  
  PR:             standards/44425
  
  Revision  Changes    Path
  1.17.2.1  +11 -3     src/lib/libc/gen/getcwd.3



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