Re: [PATCH] 2.5: PATH_MAX length fix

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Jan 14 2002 - 04:50:54 EST


> +++ working-2.4.14-pathmax/scripts/mkdep.c Wed Nov 21 12:01:44 2001
> @@ -218,7 +218,7 @@
> void add_path(const char * name)
> {
> struct path_struct *path;
> - char resolved_path[PATH_MAX+1];
> + char resolved_path[PATH_MAX];
> const char *name2;

This is a user mode application running on an unknown host. Its most
definitely correct and only safe before the change

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:44 EST