mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 10:42:28 +02:00
commit bash-20061130 snapshot
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user