diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-13 12:29:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-13 12:29:01 -0400 |
commit | caa0d15c4902a8d376a2a79bfbfdb21bf047366a (patch) | |
tree | d6883b87bcba5019e828f34272965b879f191101 /src/common/compat.h | |
parent | 25dddf7a8f30699242b52fce115f29401f63ee9c (diff) | |
download | tor-caa0d15c4902a8d376a2a79bfbfdb21bf047366a.tar.gz tor-caa0d15c4902a8d376a2a79bfbfdb21bf047366a.zip |
If we write the annotation but not the microdescriptor, rewind.
This fixes bug 9047 (and some parts of 9031, 8922, 8883 that weren't
fixed in 8822). Bugfix on 0.2.2.6-alpha.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index f0a34aae41..8ab7190526 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -411,6 +411,7 @@ tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking, void tor_lockfile_unlock(tor_lockfile_t *lockfile); off_t tor_fd_getpos(int fd); +int tor_fd_setpos(int fd, off_t pos); int tor_fd_seekend(int fd); #ifdef _WIN32 |