openssh bugs in snapshot for nextstep (fwd)

Jim Knoble jmknoble at jmknoble.cx
Wed Feb 14 04:11:35 EST 2001


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.

-- 
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/





More information about the openssh-unix-dev mailing list