From owner-p4-projects@FreeBSD.ORG Tue Jun 26 10:22:46 2007 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 C0CA016A46C; Tue, 26 Jun 2007 10:22:45 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9202816A468 for ; Tue, 26 Jun 2007 10:22:45 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 822FC13C487 for ; Tue, 26 Jun 2007 10:22:45 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5QAMjuL024907 for ; Tue, 26 Jun 2007 10:22:45 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5QAMj4K024904 for perforce@freebsd.org; Tue, 26 Jun 2007 10:22:45 GMT (envelope-from rdivacky@FreeBSD.org) Date: Tue, 26 Jun 2007 10:22:45 GMT Message-Id: <200706261022.l5QAMj4K024904@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 122336 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: Tue, 26 Jun 2007 10:22:46 -0000 http://perforce.freebsd.org/chv.cgi?CH=122336 Change 122336 by rdivacky@rdivacky_witten on 2007/06/26 10:22:21 Use copyin instead of copyinstr as the latter always returns ENAMETOOLONG in this conditions ;( Brainfart by: rdivacky Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#30 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#30 (text+ko) ==== @@ -1008,7 +1008,7 @@ if (pathseg == UIO_SYSSPACE) { return (path[0] == '/'); } else { - error = copyinstr(path, buf, 1, NULL); + error = copyin(path, buf, 1); if (error) return 0; /* we want to fail */ return (buf[0] == '/');