[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13972: Forward port patch 06_add_compile_time_defaults. (in tor/trunk/debian: . patches)



Author: weasel
Date: 2008-03-11 10:38:24 -0400 (Tue, 11 Mar 2008)
New Revision: 13972

Modified:
   tor/trunk/debian/changelog
   tor/trunk/debian/patches/06_add_compile_time_defaults.dpatch
Log:
Forward port patch 06_add_compile_time_defaults.


Modified: tor/trunk/debian/changelog
===================================================================
--- tor/trunk/debian/changelog	2008-03-11 14:18:48 UTC (rev 13971)
+++ tor/trunk/debian/changelog	2008-03-11 14:38:24 UTC (rev 13972)
@@ -5,8 +5,9 @@
   * Build with --enable-openbsd-malloc, unless no-enable-openbsd-malloc is
     found in DEB_BUILD_OPTIONS.  Hopefully this deals with some of the
     horrible memory fragmentation that glibc's malloc causes.
+  * Forward port patch 06_add_compile_time_defaults.
 
- -- Peter Palfrader <weasel@xxxxxxxxxx>  Tue, 11 Mar 2008 14:51:47 +0100
+ -- Peter Palfrader <weasel@xxxxxxxxxx>  Tue, 11 Mar 2008 15:33:07 +0100
 
 tor (0.2.0.21-rc-1) experimental; urgency=low
 

Modified: tor/trunk/debian/patches/06_add_compile_time_defaults.dpatch
===================================================================
--- tor/trunk/debian/patches/06_add_compile_time_defaults.dpatch	2008-03-11 14:18:48 UTC (rev 13971)
+++ tor/trunk/debian/patches/06_add_compile_time_defaults.dpatch	2008-03-11 14:38:24 UTC (rev 13972)
@@ -23,9 +23,9 @@
 exit 0
 
 @DPATCH@
-diff -urNad trunk~/src/or/config.c trunk/src/or/config.c
---- trunk~/src/or/config.c	2008-02-23 11:08:40.000000000 +0100
-+++ trunk/src/or/config.c	2008-02-23 13:43:05.000000000 +0100
+diff -urNad git-trunk-conf~/src/or/config.c git-trunk-conf/src/or/config.c
+--- git-trunk-conf~/src/or/config.c	2008-03-11 15:23:01.000000000 +0100
++++ git-trunk-conf/src/or/config.c	2008-03-11 15:30:34.139280421 +0100
 @@ -15,6 +15,7 @@
  #define CONFIG_PRIVATE
  
@@ -34,7 +34,7 @@
  #ifdef MS_WINDOWS
  #include <shlobj.h>
  #endif
-@@ -660,6 +661,8 @@
+@@ -658,6 +659,8 @@
  #if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
  static void check_libevent_version(const char *m, int server);
  #endif
@@ -43,18 +43,9 @@
  
  /** Magic value for or_options_t. */
  #define OR_OPTIONS_MAGIC 9090909
-@@ -3522,7 +3525,7 @@
- int
- options_init_from_torrc(int argc, char **argv)
- {
--  or_options_t *oldoptions, *newoptions;
-+  or_options_t *oldoptions, *newoptions = NULL;
-   config_line_t *cl;
-   char *cf=NULL, *fname=NULL, *errmsg=NULL;
-   int i, retval;
-@@ -3531,6 +3534,9 @@
-   static char **backup_argv;
-   static int backup_argc;
+@@ -3634,6 +3637,9 @@
+   char *command_arg = NULL;
+   char *errmsg=NULL;
  
 +  if (debian_config_fix_defaults() < 0)
 +    goto err;
@@ -62,17 +53,7 @@
    if (argv) { /* first time we're called. save commandline args */
      backup_argv = argv;
      backup_argc = argc;
-@@ -3666,7 +3672,8 @@
-  err:
-   tor_free(fname);
-   torrc_fname = NULL;
--  config_free(&options_format, newoptions);
-+  if (newoptions)
-+    config_free(&options_format, newoptions);
-   if (errmsg) {
-     log(LOG_WARN,LD_CONFIG,"Failed to parse/validate config: %s", errmsg);
-     tor_free(errmsg);
-@@ -5011,3 +5018,64 @@
+@@ -5051,3 +5057,64 @@
    puts(routerparse_c_id);
  }