aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-26 21:26:25 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-26 21:26:25 +0000
commitd8f646c44fe9a6a5999fbb7890f2822428c3dc43 (patch)
tree7677a2e0bcac24d9fcc6ab01ff4a0bca40da0719
parenta970cd7cfa7391bfdfa1af4b1150122b1d9c4555 (diff)
downloadtor-d8f646c44fe9a6a5999fbb7890f2822428c3dc43.tar
tor-d8f646c44fe9a6a5999fbb7890f2822428c3dc43.tar.gz
make writing descs work
svn:r492
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index a7a35acc9..2e0f39c96 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -380,7 +380,7 @@ write_str_to_file(const char *fname, const char *str)
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;
}