]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually enable the windows absolute-path code
authorNick Mathewson <nickm@torproject.org>
Tue, 31 Jan 2012 15:42:41 +0000 (10:42 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jan 2012 15:42:41 +0000 (10:42 -0500)
Checking for "WINDOWS" is wrong; our magic macro is MS_WINDOWS

Fixes bug 4973; bugfix on 0.2.3.11-alpha.

changes/bug4973 [new file with mode: 0644]
src/common/compat.c

diff --git a/changes/bug4973 b/changes/bug4973
new file mode 100644 (file)
index 0000000..dd3ad69
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Calculate absolute paths correctly on Windows. Fixes bug 4973;
+      bugfix on 0.2.3.11-alpha.
index 4af670a18d2f094e44adf0d8570da6873b904810..cd112035c6f35fa8dae026c3b165ea6ef6ca5ade 100644 (file)
@@ -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