From owner-svn-src-all@FreeBSD.ORG Wed Feb 29 19:50:50 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 749A7106564A; Wed, 29 Feb 2012 19:50:50 +0000 (UTC) (envelope-from brueffer@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 635CD8FC13; Wed, 29 Feb 2012 19:50:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1TJoofo042042; Wed, 29 Feb 2012 19:50:50 GMT (envelope-from brueffer@svn.freebsd.org) Received: (from brueffer@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1TJoo3R042040; Wed, 29 Feb 2012 19:50:50 GMT (envelope-from brueffer@svn.freebsd.org) Message-Id: <201202291950.q1TJoo3R042040@svn.freebsd.org> From: Christian Brueffer Date: Wed, 29 Feb 2012 19:50:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232312 - head/tools/regression/security/cap_test X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 19:50:50 -0000 Author: brueffer Date: Wed Feb 29 19:50:49 2012 New Revision: 232312 URL: http://svn.freebsd.org/changeset/base/232312 Log: Fix order of arguments to lseek(). PR: 160867 Submitted by: Henning Petersen MFC after: 1 week Modified: head/tools/regression/security/cap_test/cap_test_capmode.c Modified: head/tools/regression/security/cap_test/cap_test_capmode.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_capmode.c Wed Feb 29 19:18:32 2012 (r232311) +++ head/tools/regression/security/cap_test/cap_test_capmode.c Wed Feb 29 19:50:49 2012 (r232312) @@ -117,7 +117,7 @@ test_capmode(void) CHECK_SYSCALL_SUCCEEDS(close, fd_close); CHECK_SYSCALL_SUCCEEDS(dup, fd_file); CHECK_SYSCALL_SUCCEEDS(fstat, fd_file, &sb); - CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, SEEK_SET, 0); + CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, 0, SEEK_SET); CHECK_SYSCALL_SUCCEEDS(msync, &fd_file, 8192, MS_ASYNC); CHECK_SYSCALL_SUCCEEDS(profil, NULL, 0, 0, 0); CHECK_SYSCALL_SUCCEEDS(read, fd_file, &ch, sizeof(ch));