From owner-freebsd-bugs Mon Feb 11 12:57:53 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 4961A37B41E for ; Mon, 11 Feb 2002 12:57:48 -0800 (PST) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id WWF13417 for freebsd-bugs@freebsd.org; Mon, 11 Feb 2002 22:57:43 +0200 (EET) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.6/8.11.6) id g1ALw6D01849 for freebsd-bugs@freebsd.org; Sun, 10 Feb 2002 23:58:06 +0200 (EET) (envelope-from netch) Date: Sun, 10 Feb 2002 23:58:06 +0200 From: Valentin Nechayev To: freebsd-bugs@freebsd.org Subject: /bin/sh: MAXPWD Message-ID: <20020210235806.A491@iv.nn.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-42: On Organization: Dark side of coredump Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org /bin/sh, both in -current and in -stable, limits allowed current directory path to 256 chars (`#define MAXPWD 256' in cd.c). Why? It may be more correct to use at least PATH_MAX or MAXPATHLEN... /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message