projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NETCFG: fix condition to check whether a filedescriptor is there or not.
[citadel.git]
/
citadel
/
modules
/
network
/
serv_netspool.c
diff --git
a/citadel/modules/network/serv_netspool.c
b/citadel/modules/network/serv_netspool.c
index ca0d6181e3309362dd4c436cb16a1ec6664f8fb3..786717f6558c04db33a60f8b8812554eaf47d380 100644
(file)
--- 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) &&