Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
c9b947d8
Commit
c9b947d8
authored
17 years ago
by
Peter Palfrader
Browse files
Options
Downloads
Patches
Plain Diff
Forward port 06_add_compile_time_defaults
svn:r10064
parent
f2db099f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/patches/06_add_compile_time_defaults.dpatch
+12
-14
12 additions, 14 deletions
debian/patches/06_add_compile_time_defaults.dpatch
with
19 additions
and
14 deletions
debian/changelog
+
7
−
0
View file @
c9b947d8
tor (0.2.0.0-alpha-1~~pre.1) unstable; urgency=low
* svn r10063.
* Forward port 06_add_compile_time_defaults.
-- Peter Palfrader <weasel@debian.org> Mon, 30 Apr 2007 17:00:11 +0200
tor (0.1.2.13-2) unstable; urgency=low
* In options_init_from_torrc()'s error path only config_free() options
...
...
This diff is collapsed.
Click to expand it.
debian/patches/06_add_compile_time_defaults.dpatch
+
12
−
14
View file @
c9b947d8
...
...
@@ -23,29 +23,27 @@ esac
exit 0
@DPATCH@
diff -urNad tor-
debian~
/src/or/config.c
tor-debian
/src/or/config.c
--- tor-
debian~
/src/or/config.c 2007-0
3-06 21:52:33.000000000
+0
1
00
+++
tor-debian
/src/or/config.c 2007-04-2
7 13:05:42.420147495
+0200
@@ -1
2
,6 +1
2
,7 @@
**/
diff -urNad tor-
trunk
/src/or/config.c
/tmp/dpep.YE8t73/tor-trunk
/src/or/config.c
--- tor-
trunk
/src/or/config.c 2007-0
4-29 04:11:46.261474906
+0
2
00
+++
/tmp/dpep.YE8t73/tor-trunk
/src/or/config.c 2007-04-2
9 04:12:24.827577276
+0200
@@ -1
4
,6 +1
4
,7 @@
#define CONFIG_PRIVATE
#include "or.h"
+#include <pwd.h>
#ifdef MS_WINDOWS
#include <shlobj.h>
#endif
@@ -592,6 +593,10 @@
@@ -595,6 +596,8 @@
#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
static void check_libevent_version(const char *m, int server);
#endif
+static int debian_running_as_debiantor();
+static int debian_config_fix_defaults();
+
+
/*static*/ or_options_t *options_new(void);
/** Magic value for or_options_t. */
@@ -2982,7 +2987,7 @@
#define OR_OPTIONS_MAGIC 9090909
@@ -2991,7 +2994,7 @@
int
options_init_from_torrc(int argc, char **argv)
{
...
...
@@ -54,7 +52,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c
config_line_t *cl;
char *cf=NULL, *fname=NULL, *errmsg=NULL;
int i, retval;
@@ -
2991,6 +2996
,9 @@
@@ -
3000,6 +3003
,9 @@
static char **backup_argv;
static int backup_argc;
...
...
@@ -64,7 +62,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c
if (argv) { /* first time we're called. save commandline args */
backup_argv = argv;
backup_argc = argc;
@@ -31
20
,7 +31
28
,8 @@
@@ -31
35
,7 +31
41
,8 @@
err:
tor_free(fname);
torrc_fname = NULL;
...
...
@@ -74,7 +72,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c
if (errmsg) {
log(LOG_WARN,LD_CONFIG,"Failed to parse/validate config: %s", errmsg);
tor_free(errmsg);
@@ -430
6
,3 +43
15
,52 @@
@@ -43
2
0,3 +43
27
,52 @@
puts(routerparse_c_id);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment