From owner-cvs-src@FreeBSD.ORG Sun Jul 10 15:16:26 2005 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 4690516A41C; Sun, 10 Jul 2005 15:16:26 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F9143D4C; Sun, 10 Jul 2005 15:16:26 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j6AFGP3r087131; Sun, 10 Jul 2005 15:16:25 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6AFGP0D087130; Sun, 10 Jul 2005 15:16:25 GMT (envelope-from delphij) Message-Id: <200507101516.j6AFGP0D087130@repoman.freebsd.org> From: Xin LI Date: Sun, 10 Jul 2005 15:16:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/bin/sh expand.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: Sun, 10 Jul 2005 15:16:26 -0000 delphij 2005-07-10 15:16:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) bin/sh expand.c Log: MFC 1.47: Fix a bug when shell expansion is done against dangling symlinks, by converting the stat() call to a lstat() call, which will cover the situation. One can exercise this bug by referring a dangling link with something like */the-link. Submitted by: Simon 'corecode' Schubert [corecode fs ei tum de] Obtained from: NetBSD via DragonFlyBSD (NetBSD rev. 1.51 and DragonFly rev. 1.6) Revision Changes Path 1.46.2.1 +1 -1 src/bin/sh/expand.c