Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2001 11:14:02 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        "Jacques A. Vidrine" <n@nectar.com>
Cc:        audit@FreeBSD.ORG
Subject:   Re: PATH_MAX vs MAXPATHLEN 
Message-ID:  <200103021814.f22IE3d58463@harmony.village.org>
In-Reply-To: Your message of "Fri, 02 Mar 2001 11:51:06 CST." <20010302115105.A63024@hamlet.nectar.com> 
References:  <20010302115105.A63024@hamlet.nectar.com>  <200103020206.f2226Md53114@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010302115105.A63024@hamlet.nectar.com> "Jacques A. Vidrine" writes:
: I think (strlen(path) > PATH_MAX) is now an off-by-one error,
: considering the thread of yesterday.  It is definately so in
: some of the code you included (e.g. `char p_path[PATH_MAX]').

It was an off by one error yesterday too :-).

: These are probably just the result of doing s/MAXPATHLEN + 1/PATH_MAX/
: in definitions, but s/MAXPATHLEN/PATH_MAX/ in comparisons.

But I didn't do anything like that...  BTW, which code fragment are we
talking about?

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103021814.f22IE3d58463>