Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
53c2fff3
Unverified
Commit
53c2fff3
authored
Dec 01, 2014
by
boklm
Browse files
tor_bootstrap: fix pathes on Windows
parent
0c0fe5d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/Tests/TorBootstrap.pm
View file @
53c2fff3
...
...
@@ -94,7 +94,8 @@ sub start_tor {
$ENV
{
TOR_CONTROL_HOST
}
=
'
127.0.0.1
';
$ENV
{
TOR_CONTROL_COOKIE_AUTH_FILE
}
=
winpath
("
$tbbinfos
->{datadir}/Tor/control_auth_cookie
");
my
(
$hashed_password
,
$err
,
$success
)
=
tor_capture_exec
(
$tbbinfos
,
$tbbinfos
->
{
torbin
},
'
--quiet
',
'
--hash-password
',
$control_passwd
);
winpath
(
$tbbinfos
->
{
torbin
}),
'
--quiet
',
'
--hash-password
',
$control_passwd
);
exit_error
"
Error running tor --hash-password:
$err
"
unless
$success
;
chomp
$hashed_password
;
my
$torrc_file
;
...
...
@@ -126,7 +127,8 @@ sub start_tor {
$torrc_file
=
File::
Temp
->
new
;
write_file
(
$torrc_file
,
$config
);
}
my
@cmd
=
(
$tbbinfos
->
{
torbin
},
'
--defaults-torrc
',
winpath
(
$torrc_file
),
my
@cmd
=
(
winpath
(
$tbbinfos
->
{
torbin
}),
'
--defaults-torrc
',
winpath
(
$torrc_file
),
'
-f
',
winpath
("
$tbbinfos
->{datadir}/Tor/torrc
"),
'
DataDirectory
',
winpath
("
$tbbinfos
->{datadir}/Tor
"),
'
GeoIPFile
',
winpath
("
$tbbinfos
->{datadir}/Tor/geoip
"),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment