rofl0r
a12cf0a516
main: add more luser-friendly error message when execvp fails
...
closes #423
closes #412
2022-01-10 11:44:26 +00:00
rofl0r
acf2f4725d
fix build on FreeBSD due to usage of Dl_info
2020-09-05 14:36:05 +01:00
Solar Flare
b8fa2a7405
get own_dir by using dladdr() instead of argv[0]
2019-11-27 00:32:08 +08:00
Solar Flare
0a8663c845
fix a buffer overflow bug
2019-11-12 10:40:33 +08:00
rofl0r
831df039bd
print usage info on --help too
2018-02-11 14:58:26 +00:00
papadave
a1f7007a46
main.c: fix build error with solaris
...
sys/feature_tests.h:362:2: error: #error
"Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
2018-01-10 16:14:21 +00:00
Carlos Maddela
6dcaf533d1
Fix grammar in usage message to keep Lintian happy.
2016-12-05 18:37:11 +11:00
rofl0r
68e42d59f7
fixup for 9ab7dbe
2015-05-21 14:04:10 +01:00
rofl0r
9ab7dbeb3b
fix for CVE-2015-3887
...
closes #60
2015-05-21 13:46:22 +01:00
rofl0r
82d0b13b8f
main.c: remove trailing whitespace noise
2014-07-09 19:16:33 +02:00
rofl0r
ed7c89072a
main.c: append previously existing LD_PRELOAD contents rather than overwriting
...
some broken programs like pulseaudio rely on LD_PRELOAD hacks to function,
if we just override the environment variable, those will stop working.
simplified version of patch suggested by @hexchain
closes #35
2014-07-09 19:12:30 +02:00
rofl0r
84d9a97a08
main.c: remove code duplication around LD_PRELOAD
2014-07-09 18:07:24 +02:00
rofl0r
7bca3ba5ef
main.c: fixed forgotten initialization for second loop using i
...
this caused the combination of -q -f somefile to not find the dll
in the current dir, because it started iterating the directory
list with 2 instead of 0.
2012-11-04 06:14:33 +01:00
guanqun
bbf8b7aab0
fix typo in help message
2012-08-27 23:30:45 +08:00
rofl0r
80e58726e2
correct copyright of main.c
2012-07-16 02:36:35 +02:00
rofl0r
e5e87c8f22
put abort functionality into get_config_path to further reduce code duplication
2012-07-08 23:47:56 +02:00
rofl0r
fba5f5694c
use config file lookup routine from a common place
2012-07-08 23:32:50 +02:00
rofl0r
e99dd76941
complete sysconfdir support
2012-01-30 18:29:35 +01:00
rofl0r
f4e4c8c2b1
remove unnecessary sprintf call
2012-01-29 02:34:04 +01:00
rofl0r
dbb172b510
use PROXYCHAINS_CONF_FILE consistently
2012-01-28 18:34:40 +01:00
rofl0r
48373ab7a5
fix forgotten etc
2012-01-28 18:33:40 +01:00
rofl0r
c36db11ebc
complete mac support
2012-01-27 20:48:24 +01:00
rofl0r
526fb8b410
pass dll_name to proxychains app, makes it easier to port to MAC
2012-01-27 19:31:01 +01:00
rofl0r
2acdcd9707
pass install prefix to proxychains app, to find /etc
2012-01-27 19:28:00 +01:00
rofl0r
e32ef26fec
ran indent tool on the source code
...
now everythings finally correctly indented and future patches
will not be overshadowed by whitespace noise.
used the following settings
--braces-on-func-def-line
--braces-on-struct-decl-line
--braces-on-if-line
--dont-break-procedure-type
--leave-preprocessor-space
--continue-at-parentheses
-linux
-i8
-brace-indent1
--case-indentation8
--space-after-cast
--line-length120
--no-space-after-for
--no-space-after-if
--no-space-after-while
--leave-optional-blank-lines
--ignore-profile
--space-special-semicolon
--indent-label8
2012-01-27 19:03:21 +01:00
rofl0r
80817dbf6f
fix *all* trailing whitespace at once
2012-01-27 17:55:37 +01:00
rofl0r
73c4195ce3
remove magic number
2012-01-27 17:50:04 +01:00
rofl0r
cce902b301
eliminate dead code
2012-01-27 17:48:41 +01:00
rofl0r
75d41dea3d
use the right tool for the job. getopt clearly isnt
2012-01-26 05:11:52 +01:00
rofl0r
8fd0d95bc3
add quiet mode to proxychains launcher
...
this will be passed on to the DLL via a env variable
- additionally, now everything prints to stderr
- fixes a bug which would print DLL init even in quiet mode
- fixed a couple of bugs in argv parsing
2012-01-24 08:26:37 +01:00
rofl0r
150e624182
add proper feature tests for putenv, getenv
2012-01-24 07:14:45 +01:00
rofl0r
6ac6abd3de
add possibility to search for DLL in exe's path
2011-11-06 17:47:44 +01:00
rofl0r
d30b0a8712
cleaned up main program
2011-11-06 14:11:36 +01:00
rofl0r
b1febc25d6
fix getopt usage (C) unknown author
2011-09-10 23:13:26 +02:00
rofl0r
c377789d14
care about the argv array when the filename is passed
2011-09-10 23:05:07 +02:00
rofl0r
b8bdfc2d5e
care about HOME also in proxychains loader. put common symbols in common.h
2011-09-10 22:32:27 +02:00
rofl0r
218d242aab
some cosmetic changes
2011-09-04 02:03:47 +02:00
rofl0r
5095296ddf
fixed a couple of bugs, warnings, added basic gethostbyaddr support and a plain Makefile
2011-09-04 01:45:16 +02:00
rofl0r
86be015f0d
remove gnu autocrap
2011-09-02 20:32:04 +02:00