Commit 26bc8154 authored by Niels Möller's avatar Niels Möller
Browse files

Fixed stupid precedence bug.

Rev: src/lsh.c:1.20
parent eed450af
......@@ -179,17 +179,17 @@ int main(int argc, char **argv)
/* Dup stdio file descriptors, so that they can be closed without
* confusing the c library. */
if ( (in = dup(STDIN_FILENO) < 0))
if ( (in = dup(STDIN_FILENO)) < 0)
{
werror("Can't dup stdin: %s\n", strerror(errno));
return EXIT_FAILURE;
}
if ( (out = dup(STDOUT_FILENO) < 0))
if ( (out = dup(STDOUT_FILENO)) < 0)
{
werror("Can't dup stdout: %s\n", strerror(errno));
return EXIT_FAILURE;
}
if ( (err = dup(STDERR_FILENO) < 0))
if ( (err = dup(STDERR_FILENO)) < 0)
{
werror("Can't dup stderr: %s\n", strerror(errno));
return EXIT_FAILURE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment