summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-11-18 14:46:47 +0000
committerJim Meyering <jim@meyering.net>2004-11-18 14:46:47 +0000
commite26c30aa38f3f6260a1b79263911b25fb8714fa4 (patch)
treee2766cadedd24acec969416a9ef17445773f574a /src
parent90988bac82ff0f7af4f3d3f9a62bb09d0aab28cf (diff)
downloadcoreutils-e26c30aa38f3f6260a1b79263911b25fb8714fa4.tar.xz
(robust_getcwd): Correct the comment: this function constructs the
directory name. The caller prints it.
Diffstat (limited to 'src')
-rw-r--r--src/pwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pwd.c b/src/pwd.c
index 06bbbb270..193cf4a0c 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -244,7 +244,8 @@ find_dir_entry (struct stat *dot_sb, struct Path *path, size_t parent_height)
*dot_sb = parent_sb;
}
-/* Print the full, absolute name of the current working directory.
+/* Construct the full, absolute name of the current working
+ directory and store it in *PATH.
The getcwd function does nearly the same task, but is typically
unable to handle names longer than PATH_MAX. This function has
no such limitation. However, this function *can* fail due to