8c8
< * $FreeBSD: head/tools/regression/file/dup/dup.c 228975 2011-12-30 00:04:11Z uqs $
---
> * $FreeBSD: head/tools/regression/file/dup/dup.c 250512 2013-05-11 15:45:44Z jilles $
147c147
< if ((fd2 = fcntl(fd1, F_DUPFD)) < 0)
---
> if ((fd2 = fcntl(fd1, F_DUPFD, 10)) < 0)
149c149,153
< printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
---
> if (fd2 < 10)
> printf("not ok %d - fcntl(F_DUPFD) returned wrong fd %d\n",
> ++test, fd2);
> else
> printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
< * $FreeBSD: head/tools/regression/file/dup/dup.c 228975 2011-12-30 00:04:11Z uqs $
---
> * $FreeBSD: head/tools/regression/file/dup/dup.c 250512 2013-05-11 15:45:44Z jilles $
147c147
< if ((fd2 = fcntl(fd1, F_DUPFD)) < 0)
---
> if ((fd2 = fcntl(fd1, F_DUPFD, 10)) < 0)
149c149,153
< printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
---
> if (fd2 < 10)
> printf("not ok %d - fcntl(F_DUPFD) returned wrong fd %d\n",
> ++test, fd2);
> else
> printf("ok %d - fcntl(F_DUPFD) works\n", ++test);