From owner-cvs-all@FreeBSD.ORG Wed Oct 13 16:28:40 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C01816A4CE; Wed, 13 Oct 2004 16:28:40 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A4343D2D; Wed, 13 Oct 2004 16:28:40 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9DGSevZ017649; Wed, 13 Oct 2004 16:28:40 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9DGSew1017648; Wed, 13 Oct 2004 16:28:40 GMT (envelope-from delphij) Message-Id: <200410131628.i9DGSew1017648@repoman.freebsd.org> From: Xin LI Date: Wed, 13 Oct 2004 16:28:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/fs/msdosfs msdosfs_lookup.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 16:28:41 -0000 delphij 2004-10-13 16:28:40 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/fs/msdosfs msdosfs_lookup.c Log: MFC revision 1.41 date: 2004/09/08 11:25:41; author: tjr; state: Exp; lines: +18 -3 Merge from NetBSD: Fix a problem in previous: we can't blindly assume that we have wincnt entries available at the offset the file has been found. If the dos directory entry is not preceded by appropriate number of long name entries (happens e.g. when the filesystem is corrupted, or when the filename complies to DOS rules and doesn't use any long name entry), we would overwrite random directory entries. There are still some problems, the whole thing has to be revisited and solved right. Approved by: re (scottl) Approved by: murray (mentor) Revision Changes Path 1.40.2.1 +18 -3 src/sys/fs/msdosfs/msdosfs_lookup.c