[or-cvs] make writing descs work

Roger Dingledine arma at seul.org
Fri Sep 26 21:26:27 UTC 2003


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	util.c 
Log Message:
make writing descs work


Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- util.c	26 Sep 2003 18:27:34 -0000	1.18
+++ util.c	26 Sep 2003 21:26:25 -0000	1.19
@@ -380,7 +380,7 @@
         strerror(errno));
     close(fd); return -1;
   }
-  if (fputs(str,file)) {
+  if (fputs(str,file) == EOF) {
     log(LOG_ERR, "Error writing to %s: %s", tempname, strerror(errno));
     fclose(file); return -1;
   }



More information about the tor-commits mailing list