[tbb-bugs] #13770 [Tor Browser]: BusyBox-style bundling of Go programs can save space

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Nov 22 16:46:46 UTC 2014

#13770: BusyBox-style bundling of Go programs can save space
     Reporter:  dcf          |      Owner:  tbb-team
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Tor Browser  |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |

Comment (by dcf):

 Replying to [comment:4 yawning]:
 > Hey, that's really neat.
 > Replying to [comment:2 dcf]:
 > > On linux and mac, we can use symbolic links to the executable. I don't
 know what is done on Windows. Maybe batch files, or stub programs that
 change argv[0] and then exec?
 > NTFS kind of sort of has symlinks but assuming that the target
 filesystem is NTFS instead of FAT32/exFAT will end in tears.
 > How about adding code to the begining of `main()` that:
 >  * Looks at `os.Args[1]` for `--progname=<name>` (Do this manually, and
 not with the flag package.)

 Or just always switch on argv[1], and ignore argv[0]. For example,
 ClientTransportPlugin obfs4 exec TorBrowser\Tor\PluggableTransports\multi
 and do the same thing on all platforms:
 ClientTransportPlugin obfs4 exec
 ./TorBrowser/Tor/PluggableTransports/multi obfs4proxy

Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13770#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the tbb-bugs mailing list