openssh bugs in snapshot for nextstep (fwd)

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Wed Feb 14 05:16:55 EST 2001


On Tue, 13 Feb 2001, Jim Knoble wrote:

> Circa 2001-Feb-12 10:23:38 -0600 dixit mouring at etoh.eviladmin.org:
> 
> : I was sent this from Mark Miller.   Should we be using MAXPATHLEN
> : instead of PATH_MAX in the upstream tree?  Not all systems define
> : PATH_MAX.
> 
> Isn't MAXPATHLEN the BSD name for PATH_MAX?  I would suggest rather
> something like:
> 
>   #ifndef PATH_MAX
>   # ifndef MAXPATHLEN
>   #  define MAXPATHLEN <some-arbitrary-value>
>   # endif
>   # define PATH_MAX MAXPATHLEN
>   #endif
> 
> where <some-arbitrary-value> is, if possible, guessed from the
> operating system, or at the very least chosen intelligently.
> 
> 
We are already doing this w/ MAXPATHLEN.  It seems silly to do it for one
occurance of PATH_MAX.  Everywhere else in the upstream source we use
MAXPATHLEN.  

- Ben






More information about the openssh-unix-dev mailing list