commit bash-20061130 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:00:59 -05:00
parent 2569d6d5a4
commit 39393a5bd6
37 changed files with 1062 additions and 50 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ char **v;
fd = open("/dev/null", O_RDONLY, 0666);
if (fd == -1)
exit (2);
if (dup2(fd, 3) == -1)
if (fd != 3 && (dup2(fd, 3) == -1))
exit (1);
/* test -r /dev/fd/3 */
r = access("/dev/fd/3", R_OK);