mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
make writing descs work
svn:r492
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user