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.
v4.2
2012-11-04 06:14:33 +01:00
f011ff99dd
update .gitignore
2012-11-04 05:26:34 +01:00
e05cafc8e2
put a mutex lock around gethostent() usage, to prevent internal
...
races. the external usage was covered by the latest commit.
2012-11-04 05:23:51 +01:00
8ce1e51a60
add some test/debug programs
2012-11-04 05:10:50 +01:00
2d58820635
proxy_gethostbyname: fix thread safety issues arising from ...
...
gethostent() usage.
also set hostent.h_aliases member to a valid pointer.
2012-11-04 05:02:57 +01:00
b851b39a37
add RcB tags to core.h
...
this is handy as it allows me to do quick testprograms using my RcB program,
without specifying dozens of things on the command line.
2012-11-04 05:01:38 +01:00
e8d49b02e8
gethostbyaddr hook: also set aliases.
...
i inspected behaviour of libc's and they all seem to set a valid
h_aliases pointer, of which the first one should be NULL, if no
aliases exist.
2012-11-04 04:58:48 +01:00
859dabb302
common.h: supply a default for SYSCONFDIR if not passed via CFLAGS
2012-11-04 04:57:45 +01:00
6f35888528
fix issues with pthread and dlsym symbols on ubuntu 12.04
...
for some reason, the linker needs --no-as-needed for both
libdl and libpthread.
closes #4
thanks to @tomsawyer for discovering this.
the proposed -pthread change was not needed though,
and this is a good thing since it seems not portable.
2012-11-04 01:21:29 +01:00
bddb79a286
fix bug which lead to segfault in ubuntu 12.04 telnet
...
it called gethostbyname and expected that the h->h_name was set.
this code path here which gets only active if the passed name
equals the gethostname() result failed to set a couple of values.
additionally fixed usage of strncpy, which causes the entire
memory buffer to be written, even when the string is much shorter.
a similar bugfix was independently discovered by semion laptev, but my
version is threadsafe - his version introduces a new static buffer,
even though we have plenty of thread-safe space reserved exactly
for this usage case, thus causing a regression.
2012-11-04 01:00:58 +01:00
c2c719e25d
fix AUTHORS. it wrongly assigned some work to the wrong author.
...
localnet was written by jianingy
poll_retry() by coling cross.
2012-09-02 01:58:15 +02:00
6515bc4d82
Merge pull request #3 from guanqun/master
...
fix typo in help message
2012-08-27 14:46:05 -07:00
bbf8b7aab0
fix typo in help message
2012-08-27 23:30:45 +08:00
01b8c81e90
add some default localnets (commented) to config
2012-08-16 16:44:51 +02:00
ddd9e48fc1
update README for 4.1 release
v4.1
2012-08-06 01:34:23 +02:00
923c4f1026
fix core.h to be usable on its own
2012-08-06 01:26:34 +02:00
108610e30e
core.c: add getservbyname_r replacement function for mac
2012-08-06 01:26:03 +02:00
0f1bc719fd
put base64 variable to the place it gets used
2012-08-04 17:55:37 +02:00
068e088a8b
tunnel_to: use better suited type
2012-08-03 10:43:59 +02:00
40bb78b53f
fix omission in common.c
2012-07-16 02:42:09 +02:00
a4f3dd0538
Makefile: put config into new install-config target
2012-07-16 02:36:35 +02:00
80e58726e2
correct copyright of main.c
2012-07-16 02:36:35 +02:00
3c7fcc7507
update AUTHORS
2012-07-16 02:36:35 +02:00
ab3ca31871
getaddrinfo: cosmetics
2012-07-16 01:34:00 +02:00
6f56956715
add test for getaddrinfo
2012-07-16 01:21:22 +02:00
037edbcb8e
proxy_getaddrinfo: fix segfault when hints is NULL
2012-07-16 01:19:30 +02:00
40edf758ee
make getaddrinfo threadsafe
2012-07-16 01:05:28 +02:00
4b999cdae7
use threadsafe getservbyname_r
2012-07-14 17:59:56 +02:00
71e15e2edd
simplify log func
2012-07-14 17:59:06 +02:00
e5e87c8f22
put abort functionality into get_config_path to further reduce code duplication
2012-07-08 23:47:56 +02:00
fafeaf5936
remove unused file
2012-07-08 23:34:34 +02:00
fba5f5694c
use config file lookup routine from a common place
2012-07-08 23:32:50 +02:00
1a02b9f82f
update README
2012-07-08 21:44:02 +02:00
3004240462
slightly better error message
2012-07-08 21:23:39 +02:00
364c785970
print everything to stderr, and fflush on PDEBUG
2012-07-08 04:18:42 +02:00
1fc7e38ee0
fixup for d95ef42d48
2012-07-08 04:09:50 +02:00
eb0db7221a
configure: add --help text
2012-07-08 00:35:59 +02:00
2c9c4d9da7
simplify load_sym code and remove potential aliasing violation.
2012-07-08 00:27:46 +02:00
d95ef42d48
externalize some variables, which are used from both C files
2012-07-08 00:16:00 +02:00
229eb7cc5a
bugfix: localnet never used if no port specified. Fix typo.
2012-05-22 23:11:03 +02:00
45f50ac754
cosmetic fix
2012-04-24 02:04:02 +02:00
d72e668767
use sane defaults
2012-04-24 01:48:17 +02:00
561679fbcd
remove dead code
2012-04-24 01:46:57 +02:00
bc23ef8f46
fix debug message
2012-04-23 22:56:44 +02:00
88a54e872a
use dynloader to call init() func when gcc is available, and lock it properly
2012-04-23 22:21:40 +02:00
caed782652
macros
2012-04-23 22:21:40 +02:00
f55c6bc4d5
fix PDEBUG macro
2012-04-23 22:21:40 +02:00
49293b180d
some cleanup in core.h
2012-04-23 20:26:13 +02:00
3260ee812a
debloat init_lib()
2012-04-23 19:51:14 +02:00
1000366f88
Makefile: create destination dirs in case they do not exist
2012-03-07 18:05:04 +01:00