From 2a04c2544dd0c9ca9a6fb63dca8d1f1eea004f3e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 9 May 2014 13:34:06 +0200 Subject: [PATCH] Fix typo introduced by previous commit --- binr/rarun2/rarun2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binr/rarun2/rarun2.c b/binr/rarun2/rarun2.c index a065aaf636..6b5770f13f 100644 --- a/binr/rarun2/rarun2.c +++ b/binr/rarun2/rarun2.c @@ -167,21 +167,21 @@ static int runfile () { } if (_stdin) { int f = open (_stdin, O_RDONLY); - if (!f) + if (f < 0) return 1; close (0); dup2 (f, 0); } if (_stdout) { int f = open (_stdout, O_WRONLY); - if (!f) + if (f < 0) return 1; close (1); dup2 (f, 1); } if (_stderr) { int f = open (_stderr, O_WRONLY); - if (!f) + if (f < 0) return 1; close (2); dup2 (f, 2);