svn commit: r230384 - stable/9/tools/regression/fifo/fifo_misc

Jilles Tjoelker jilles at FreeBSD.org
Fri Jan 20 16:29:17 UTC 2012


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);


More information about the svn-src-stable-9 mailing list