From: Jim Meyering Date: Tue, 4 Mar 2003 18:07:59 +0000 (+0000) Subject: Improve comment. X-Git-Tag: v4.5.9~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d68a9cf4e9a5f8f37cdd31b59b4a4a552e1b6350;p=thirdparty%2Fcoreutils.git Improve comment. --- diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index c01491a483..ed425200d0 100644 --- a/lib/xgetcwd.c +++ b/lib/xgetcwd.c @@ -48,8 +48,11 @@ char *getwd (); #include "xalloc.h" #include "xgetcwd.h" -/* Return the current directory, newly allocated, arbitrarily long. - Return NULL and set errno on error. */ +/* Return the current directory, newly allocated, assuming it fits + within PATH_MAX bytes -- this is a common system-imposed limit + on how getcwd works. + Upon an out-of-memory error, call xalloc_die. + Upon any other type of error, return NULL. */ char * xgetcwd (void)