Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 19:50:50 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232312 - head/tools/regression/security/cap_test
Message-ID:  <201202291950.q1TJoo3R042040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <henning.petersen@t-online.de>
  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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202291950.q1TJoo3R042040>