From: Wilfried Goesgens Date: Sun, 31 Mar 2013 19:31:07 +0000 (+0200) Subject: NETCFG: fix condition to check whether a filedescriptor is there or not. X-Git-Tag: v8.20~66 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=ef5597ebbc6d866ec93be5dcf76bb3c11c5fa1a5 NETCFG: fix condition to check whether a filedescriptor is there or not. --- diff --git a/citadel/modules/network/serv_netspool.c b/citadel/modules/network/serv_netspool.c index ca0d6181e..786717f65 100644 --- a/citadel/modules/network/serv_netspool.c +++ b/citadel/modules/network/serv_netspool.c @@ -233,7 +233,7 @@ void CalcListID(SpoolControl *sc) assoc_file_name(filename, sizeof filename, &sc->room, ctdl_info_dir); fd = open(filename, 0); - if (fd != 0) { + if (fd > 0) { struct stat stbuf; if ((fstat(fd, &stbuf) == 0) &&