From owner-freebsd-current Sat Dec 21 21:25:51 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA19894 for current-outgoing; Sat, 21 Dec 1996 21:25:51 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA19885 for ; Sat, 21 Dec 1996 21:25:46 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id QAA08222; Sun, 22 Dec 1996 16:24:38 +1100 Date: Sun, 22 Dec 1996 16:24:38 +1100 From: Bruce Evans Message-Id: <199612220524.QAA08222@godzilla.zeta.org.au> To: freebsd-current@freefall.freebsd.org, sprice@hiwaay.net Subject: Re: cannot bootstrap to -current Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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