From 10dc0fd152ca60ca9c71df17ec32ba51bcac51c9 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Thu, 21 Aug 2008 19:15:41 +0000 Subject: [PATCH] error check got triggered on valid file descriptor 0. --- apps/shell/shell-exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shell/shell-exec.c b/apps/shell/shell-exec.c index 20f8f51f3..c7b1e75d8 100644 --- a/apps/shell/shell-exec.c +++ b/apps/shell/shell-exec.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-exec.c,v 1.2 2008/07/03 21:13:13 adamdunkels Exp $ + * $Id: shell-exec.c,v 1.3 2008/08/21 19:15:41 nvt-se Exp $ */ /** @@ -73,7 +73,7 @@ PROCESS_THREAD(shell_exec_process, ev, data) fd = cfs_open(name, CFS_READ); - if(fd <= 0) { + if(fd < 0) { shell_output_str(&exec_command, "exec: could not open ", name); } else {