mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Actually enable the windows absolute-path code
Checking for "WINDOWS" is wrong; our magic macro is MS_WINDOWS Fixes bug 4973; bugfix on 0.2.3.11-alpha.
This commit is contained in:
parent
2b29c8f48f
commit
48424772aa
3
changes/bug4973
Normal file
3
changes/bug4973
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes:
|
||||
- Calculate absolute paths correctly on Windows. Fixes bug 4973;
|
||||
bugfix on 0.2.3.11-alpha.
|
@ -1628,7 +1628,7 @@ get_parent_directory(char *fname)
|
||||
char *
|
||||
make_path_absolute(char *fname)
|
||||
{
|
||||
#ifdef WINDOWS
|
||||
#ifdef MS_WINDOWS
|
||||
char *absfname_malloced = _fullpath(NULL, fname, 1);
|
||||
|
||||
/* We don't want to assume that tor_free can free a string allocated
|
||||
|
Loading…
Reference in New Issue
Block a user