Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
cdb0e6c2
Commit
cdb0e6c2
authored
Jul 29, 2020
by
Nick Mathewson
🥄
Browse files
Merge branch 'maint-0.3.5' into maint-0.4.2
parents
c0bc30b6
dcc60294
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug31036
0 → 100644
View file @
cdb0e6c2
o Minor bugfixes (windows):
- Fix a bug that prevented Tor from starting if its log file
grew above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
src/lib/fdio/fdio.c
View file @
cdb0e6c2
...
...
@@ -47,7 +47,7 @@ off_t
tor_fd_getpos
(
int
fd
)
{
#ifdef _WIN32
return
(
off_t
)
_lseek
(
fd
,
0
,
SEEK_CUR
);
return
(
off_t
)
_lseek
i64
(
fd
,
0
,
SEEK_CUR
);
#else
return
(
off_t
)
lseek
(
fd
,
0
,
SEEK_CUR
);
#endif
...
...
@@ -60,7 +60,7 @@ int
tor_fd_seekend
(
int
fd
)
{
#ifdef _WIN32
return
_lseek
(
fd
,
0
,
SEEK_END
)
<
0
?
-
1
:
0
;
return
_lseek
i64
(
fd
,
0
,
SEEK_END
)
<
0
?
-
1
:
0
;
#else
off_t
rc
=
lseek
(
fd
,
0
,
SEEK_END
)
<
0
?
-
1
:
0
;
#ifdef ESPIPE
...
...
@@ -79,7 +79,7 @@ int
tor_fd_setpos
(
int
fd
,
off_t
pos
)
{
#ifdef _WIN32
return
_lseek
(
fd
,
pos
,
SEEK_SET
)
<
0
?
-
1
:
0
;
return
_lseek
i64
(
fd
,
pos
,
SEEK_SET
)
<
0
?
-
1
:
0
;
#else
return
lseek
(
fd
,
pos
,
SEEK_SET
)
<
0
?
-
1
:
0
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment