Re: [PATCH 2/5] readdir.3: ffix
From: Michael Kerrisk (man-pages) <hidden>
Date: 2012-08-13 07:23:51
Applied! On Mon, Aug 13, 2012 at 3:34 AM, David Prévot [off-list ref] wrote:
quoted hunk
--- man3/readdir.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/man3/readdir.3 b/man3/readdir.3 index 0660efd..90f2ff1 100644 --- a/man3/readdir.3 +++ b/man3/readdir.3@@ -227,7 +227,7 @@ as follows: .nf name_max = pathconf(dirpath, _PC_NAME_MAX); -if (name_max == \-1) /* Limit not defined, or error */ +if (name_max == \-1) /* Limit not defined, or error */ name_max = 255; /* Take a guess */ len = offsetof(struct dirent, d_name) + name_max + 1; entryp = malloc(len); --1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html