2002-06-14 12:30:07

by Yaroslav Popovitch

[permalink] [raw]
Subject: 2.4.19-pre10, there is still bug in mkdep.c

Rusty Russell sent a patch which fix PATH_MAX bug, but I checked and
found that patch for mkdep.c was not applied
For more info see:
http://www.cs.helsinki.fi/linux/linux-kernel/2002-02/0242.html


--- linux/scripts/mkdep.c Thu Jun 13 22:01:57 2002
+++ linux/scripts/mkdep.c.mod Fri Jun 14 15:30:56 2002
@@ -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;

if (strcmp(name, ".")) {

Cheers,YP
--
Mr. Yaroslav Popovitch - tel. +372 6419975
SOT Finnish Software Engineering Ltd. - fax +372 6419876
Kreutzwaldi 7-4, 10124 TALLINN - http://www.sot.com/
ESTONIA - http://sotlinux.net/



2002-06-14 13:04:09

by Dave Jones

[permalink] [raw]
Subject: Re: 2.4.19-pre10, there is still bug in mkdep.c

On Fri, Jun 14, 2002 at 03:35:36PM +0200, Yaroslav Popovitch wrote:
> Rusty Russell sent a patch which fix PATH_MAX bug, but I checked and
> found that patch for mkdep.c was not applied
> For more info see:
> http://www.cs.helsinki.fi/linux/linux-kernel/2002-02/0242.html

See next in thread.
http://www.cs.helsinki.fi/linux/linux-kernel/2002-02/0299.html

Dave
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs