Date: Mon, 12 Jun 2006 21:06:00 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh cd.c Message-ID: <200606122106.k5CL60RC018369@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606122106.k5CL60RC018369>
