From e26c30aa38f3f6260a1b79263911b25fb8714fa4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 18 Nov 2004 14:46:47 +0000 Subject: (robust_getcwd): Correct the comment: this function constructs the directory name. The caller prints it. --- src/pwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2