Deleted Added
full compact
42c42
< __FBSDID("$FreeBSD: head/lib/libc/gen/wordexp.c 253581 2013-07-23 21:09:26Z jilles $");
---
> __FBSDID("$FreeBSD: head/lib/libc/gen/wordexp.c 254977 2013-08-27 21:47:01Z jilles $");
124c124
< if (pipe(pdes) < 0)
---
> if (pipe2(pdes, O_CLOEXEC) < 0)
143,144c143,145
< _close(pdes[0]);
< if (_dup2(pdes[1], STDOUT_FILENO) < 0)
---
> if ((pdes[1] != STDOUT_FILENO ?
> _dup2(pdes[1], STDOUT_FILENO) :
> _fcntl(pdes[1], F_SETFD, 0)) < 0)
146d146
< _close(pdes[1]);