From owner-svn-src-stable-9@FreeBSD.ORG Fri Jan 20 16:29:17 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E5D31065672; Fri, 20 Jan 2012 16:29:17 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 780EC8FC15; Fri, 20 Jan 2012 16:29:17 +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 q0KGTHod049509; Fri, 20 Jan 2012 16:29:17 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0KGTH5M049507; Fri, 20 Jan 2012 16:29:17 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201201201629.q0KGTH5M049507@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 20 Jan 2012 16:29:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230384 - stable/9/tools/regression/fifo/fifo_misc X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 16:29:17 -0000 Author: jilles Date: Fri Jan 20 16:29:17 2012 New Revision: 230384 URL: http://svn.freebsd.org/changeset/base/230384 Log: MFC r227124: fifo_misc test: Fix swapped lseek arguments. It worked regardless because SEEK_CUR happens to be 1. PR: misc/160866 Modified: stable/9/tools/regression/fifo/fifo_misc/fifo_misc.c Directory Properties: stable/9/tools/regression/fifo/ (props changed) Modified: stable/9/tools/regression/fifo/fifo_misc/fifo_misc.c ============================================================================== --- stable/9/tools/regression/fifo/fifo_misc/fifo_misc.c Fri Jan 20 15:46:46 2012 (r230383) +++ stable/9/tools/regression/fifo/fifo_misc/fifo_misc.c Fri Jan 20 16:29:17 2012 (r230384) @@ -115,7 +115,7 @@ test_lseek(void) exit(-1); } - if (lseek(reader_fd, SEEK_CUR, 1) >= 0) { + if (lseek(reader_fd, 1, SEEK_CUR) >= 0) { warnx("%s: lseek succeeded instead of returning ESPIPE", __func__); cleanfifo("testfifo", reader_fd, writer_fd);