From c8c7a7c87ff6b424a35a30275a4850307f2a3b50 Mon Sep 17 00:00:00 2001 From: dlukes <dlukes@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 31 Jan 2009 17:50:19 +0000 Subject: [PATCH] Typo in comparsion. Thank the Christian Franke to alarm me. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2729 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/smartd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 9dde03935..154ef020f 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -138,7 +138,7 @@ extern const char *os_solaris_ata_s_cvsid; #ifdef _WIN32 extern const char *daemon_win32_c_cvsid, *hostname_win32_c_cvsid, *syslog_win32_c_cvsid; #endif -const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.438 2009/01/31 13:21:32 dlukes Exp $" +const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.439 2009/01/31 17:50:19 dlukes Exp $" ATACMDS_H_CVSID CONFIG_H_CVSID #ifdef DAEMON_WIN32_H_CVSID DAEMON_WIN32_H_CVSID @@ -1367,7 +1367,7 @@ void DaemonInit(){ // redirect any IO attempts to /dev/null for stdin i=open("/dev/null",O_RDWR); - if (i>0) { + if (i>=0) { // stdout NO_warn_unused_result(dup(i)); // stderr -- GitLab