Support -uUser and -pPassword without additional space
Copied from Debian bugtracker https://bugs.debian.org/760164:
Torsocks
doesn't recognize the arguments to the -u
(--user
) and -p
(--pass
) options if they immediately follow the option characters:
$ torsocks -uMyUser -pMyPass /bin/true
/usr/bin/torsocks: 226: command: Illegal option -u
ERROR: -uMyUser cannot be found.
/usr/bin/torsocks: 261: exec: -uMyUser: not found
It works if you put a space between the option and the argument:
$ torsocks -u MyUser -p MyPass /bin/true
Torsocks
should support the former syntax too, as it is standard on
UNIX-like systems.