Browse Source

Merge remote-tracking branch 'public/bug11342'

Nick Mathewson 10 years ago
parent
commit
f82e499aa5
2 changed files with 5 additions and 1 deletions
  1. 4 0
      changes/bug11342
  2. 1 1
      src/or/routerparse.c

+ 4 - 0
changes/bug11342

@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - When dumping a malformed directory object to disk, save it in binary
+      mode on windows, not text mode. Fixes bug 11342; bugfix on
+      0.2.2.1-alpha.

+ 1 - 1
src/or/routerparse.c

@@ -572,7 +572,7 @@ dump_desc(const char *desc, const char *type)
     char *content = tor_malloc_zero(filelen);
     tor_snprintf(content, filelen, "Unable to parse descriptor of type "
                  "%s:\n%s", type, desc);
-    write_str_to_file(debugfile, content, 0);
+    write_str_to_file(debugfile, content, 1);
     log_info(LD_DIR, "Unable to parse descriptor of type %s. See file "
              "unparseable-desc in data directory for details.", type);
     tor_free(content);