From owner-cvs-src@FreeBSD.ORG Mon Jun 12 21:08:16 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8CA516A418; Mon, 12 Jun 2006 21:08:16 +0000 (UTC) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D36143D48; Mon, 12 Jun 2006 21:08:16 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5CL60TR018370; Mon, 12 Jun 2006 21:06:00 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5CL60RC018369; Mon, 12 Jun 2006 21:06:00 GMT (envelope-from stefanf) Message-Id: <200606122106.k5CL60RC018369@repoman.freebsd.org> From: Stefan Farfeleder Date: Mon, 12 Jun 2006 21:06:00 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/bin/sh cd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2006 21:08:17 -0000 stefanf 2006-06-12 21:06:00 UTC FreeBSD src repository Modified files: bin/sh cd.c Log: Don't strip a leading ./ from the path for the cd builtin to avoid interpreting .//dir as /dir. Rather strip it only for the purpose of checking if the directory path should be printed. PR: 88813 Submitted by: Josh Elsasser Patch from: NetBSD (cd.c rev 1.38) MFC after: 2 weeks Revision Changes Path 1.35 +3 -2 src/bin/sh/cd.c