Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 1996 16:24:38 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@freefall.freebsd.org, sprice@hiwaay.net
Subject:   Re: cannot bootstrap to -current
Message-ID:  <199612220524.QAA08222@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I am waiting for feedback to make sure that this doesn't create
>anymore problems before I commit it.

>-#define MAXPWD 256

This was probably too small.

>+	char buf[_POSIX_PATH_MAX];

This should probably not be used.  Why not use getcwd(NULL, 0) like
pwd(1) to avoid unnecessary failures in deep directories?
_POSIX_PATH_MAX is even smaller than MAXPWD (255) and should only
be used by POSIX programs that don't want to deal with dynamic
allocation to handle systems where PATH_MAX is not defined.

Bruce



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