[tor-bugs] #9563 [Tor bundles/installation]: TBB architecture check depends on working directory

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Aug 22 11:31:30 UTC 2013


#9563: TBB architecture check depends on working directory
--------------------------------------+-------------------------------------
 Reporter:  cypherpunks               |          Owner:  erinn
     Type:  defect                    |         Status:  new  
 Priority:  normal                    |      Milestone:       
Component:  Tor bundles/installation  |        Version:       
 Keywords:                            |         Parent:       
   Points:                            |   Actualpoints:       
--------------------------------------+-------------------------------------
 Version: tor-browser-linux32-3.0-alpha-3_en-US

 When start-tor-browser is run from a location other than within its
 directory (eg, it is not invoked as ./start-tor-browser), the architecture
 check introduced for #3841 looks for tor at the wrong path and fails with
 a message like this:
 {{{
 ./Downloads/tor-browser_en-US/start-tor-browser: 123: [: -ne: argument
 expected
 }}}

 The check fails open, though, so after that error is printed everything
 still works (assuming the architecture is correct).

 Replacing this:
 {{{
 TORARCHITECTURE=$(expr "$(file App/tor)" : '.*ELF \([[:digit:]]*\)')
 }}}
 With this:
 {{{
 TORARCHITECTURE=$(expr "$(file $(dirname $0)/App/tor)" : '.*ELF
 \([[:digit:]]*\)')
 }}}
 should fix the problem.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9563>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list