]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
authorstefanf <stefanf@FreeBSD.org>
Mon, 12 Jun 2006 21:06:00 +0000 (21:06 +0000)
committerstefanf <stefanf@FreeBSD.org>
Mon, 12 Jun 2006 21:06:00 +0000 (21:06 +0000)
commitec7a44920791ea14b9eb51468503285eaf116c8a
tree3f636d37db26a5c85bf71c99f245a8302006ec6b
parent716b0c76f37c7a1919b09032b1b9e4002c92246a
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
bin/sh/cd.c