From owner-cvs-src@FreeBSD.ORG Wed Apr 9 16:42:51 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 340BD1065670; Wed, 9 Apr 2008 16:42:51 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7D98FC0C; Wed, 9 Apr 2008 16:42:51 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m39GgomA052945; Wed, 9 Apr 2008 16:42:50 GMT (envelope-from rdivacky@repoman.freebsd.org) Received: (from rdivacky@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m39GgohM052944; Wed, 9 Apr 2008 16:42:50 GMT (envelope-from rdivacky) Message-Id: <200804091642.m39GgohM052944@repoman.freebsd.org> From: Roman Divacky Date: Wed, 9 Apr 2008 16:42:50 +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/sys/compat/linux linux_file.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: Wed, 09 Apr 2008 16:42:51 -0000 rdivacky 2008-04-09 16:42:50 UTC FreeBSD src repository Modified files: sys/compat/linux linux_file.c Log: Remove using magic value of -1 to distinguish between linux_open() and linux_openat(). Instead just pass AT_FDCWD into linux_common_open() for the linux_open() case. This prevents passing -1 as a dirfd to openat() from succeeding which is wrong. Suggested by: rwatson, kib Approved by: kib (mentor) Revision Changes Path 1.112 +3 -5 src/sys/compat/linux/linux_file.c