From ee62201f94e3f1055fb51d742d8163fdc03c1c8d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 12 Jun 2007 05:23:03 +0000 Subject: [PATCH] Fixed description of EACCES error. Added sentence defining "curret working directory". Other minor wording changes. --- man2/chdir.2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/man2/chdir.2 b/man2/chdir.2 index a169f0e23..602683210 100644 --- a/man2/chdir.2 +++ b/man2/chdir.2 @@ -30,7 +30,7 @@ .\" Modified 1997-08-21 by Joseph S. Myers .\" Modified 2004-06-23 by Michael Kerrisk .\" -.TH CHDIR 2 2004-06-23 "Linux" "Linux Programmer's Manual" +.TH CHDIR 2 2007-06-18 "Linux" "Linux Programmer's Manual" .SH NAME chdir, fchdir \- change working directory .SH SYNOPSIS @@ -41,7 +41,8 @@ chdir, fchdir \- change working directory .BI "int fchdir(int " fd ); .SH DESCRIPTION .BR chdir () -changes the current working directory to that specified in +changes the current working directory pf the calling process to the +directory specified in .IR path . .PP .BR fchdir () @@ -62,8 +63,7 @@ general errors for are listed below: .TP .B EACCES -Search permission is denied for one of the directories -in the path prefix of +Search permission is denied for one of the components of .IR path . (See also .BR path_resolution (7).) @@ -108,6 +108,9 @@ is not a valid file descriptor. .SH "CONFORMING TO" SVr4, 4.4BSD, POSIX.1-2001. .SH NOTES +The current working directory is the starting point for interpreting +relative pathnames (those not starting with '/'). + A child process created via .BR fork (2) inherits its parent's current working directory.