Date: Fri, 20 Jan 2012 16:34:14 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r230386 - stable/7/tools/regression/fifo/fifo_misc Message-ID: <201201201634.q0KGYEwq049767@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Fri Jan 20 16:34:14 2012 New Revision: 230386 URL: http://svn.freebsd.org/changeset/base/230386 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/7/tools/regression/fifo/fifo_misc/fifo_misc.c Directory Properties: stable/7/tools/regression/fifo/ (props changed) Modified: stable/7/tools/regression/fifo/fifo_misc/fifo_misc.c ============================================================================== --- stable/7/tools/regression/fifo/fifo_misc/fifo_misc.c Fri Jan 20 16:31:44 2012 (r230385) +++ stable/7/tools/regression/fifo/fifo_misc/fifo_misc.c Fri Jan 20 16:34:14 2012 (r230386) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201201634.q0KGYEwq049767>