From owner-p4-projects@FreeBSD.ORG Sat Sep 23 10:36:27 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1029A16A415; Sat, 23 Sep 2006 10:36:27 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0D7216A403 for ; Sat, 23 Sep 2006 10:36:26 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2242243D5A for ; Sat, 23 Sep 2006 10:36:26 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8NAaQGT047501 for ; Sat, 23 Sep 2006 10:36:26 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8NAaP5M047498 for perforce@freebsd.org; Sat, 23 Sep 2006 10:36:25 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sat, 23 Sep 2006 10:36:25 GMT Message-Id: <200609231036.k8NAaP5M047498@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 106545 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2006 10:36:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=106545 Change 106545 by rdivacky@rdivacky_witten on 2006/09/23 10:35:33 Return EINVAL instead of EACCESS if invalid access mode is entered. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_file.c#4 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_file.c#4 (text+ko) ==== @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -480,6 +481,10 @@ char *path; int error; + /* linux convention */ + if (args->flags & ~(F_OK | X_OK | W_OK | R_OK)) + return (EINVAL); + LCONVPATHEXIST(td, args->path, &path); #ifdef DEBUG @@ -488,6 +493,7 @@ #endif error = kern_access(td, path, UIO_SYSSPACE, args->flags); LFREEPATH(path); + return (error); }