1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Go to file
Miciah Dashiel Butler Masters 4895620e09 Fix IPv4 DNS lookup bug
In revision 1.15 of dns.c (as it was called way back then), pasky
backported a fix from Links 0.97pre2 to try gethostbyaddr before
trying gethostbyname for DNS lookups:

   MacOS address resolution fix (Aldy Hernandez) (from 0.97pre2)

However, that fix introduced a bug, because it was calling gethostbyaddr
on all addresses, not just IP addresses. Mikulas fixed that bug in Links
0.98:

   Do not call gethostbyaddr when name is not ip address (it should avoid
   some useless nameserver queries)'

This fix was never backported to ELinks. Until today.

This commit is functionally the same as the fix in Links 0.98, plus it uses
inet_aton for great correctness!

This fixes a bug reported in #elinks by tnks, whereby lookups for
yubnub.org resulted in 121.117.98.110 == 0x7975626E == 'y', 'u', 'b', 'n'.
I believe that it also fixes bug 691 (which is already closed with a
workaround).

[ From commit 8344dfe6c9 in ELinks
  0.12.GIT.  --KON ]
2007-05-01 23:56:08 +03:00
config Don't contaminate CFLAGS with stuff from RUBY_CFLAGS 2006-01-29 11:25:43 +01:00
contrib Revert 8bedf25b, "goto_url_hook takes 2 params not 1." 2007-04-06 14:30:00 +03:00
debian Remove .vimrc files; use the Vim ftplugin instead 2006-01-29 10:45:22 +01:00
doc lua-scripting: Revised examples for Lua 5.0. And other updates. 2007-05-01 12:22:44 +03:00
po Merge with http://elinks.cz/elinks-0.11 2007-04-15 12:00:05 +03:00
src Fix IPv4 DNS lookup bug 2007-05-01 23:56:08 +03:00
test Add a stupid test script to print CGI variables set by ELinks 2006-11-30 16:25:49 +01:00
Unicode Merge in the public entity set names from the unicode.org database 2006-01-10 14:33:27 +01:00
.gitignore Remove traces of nuts and automake. 2005-09-16 13:44:33 +02:00
.mailmap Add .mailmap file to help git-shortlog 2007-04-15 22:11:19 +02:00
ABOUT-NLS Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
AUTHORS AUTHORS: add Simon Josefsson 2007-05-01 12:44:46 +03:00
autogen.sh We loves us some autoheader 2005-09-27 23:23:38 +02:00
BUGS Drop .or from elinks.or.cz. 2005-12-29 04:35:02 +00:00
ChangeLog Tidyup. 2006-11-27 18:26:41 +01:00
configure.in elinks-0.11.3.GIT 2007-04-15 22:40:29 +02:00
COPYING Clarify the GPL upgrades policy a bit, and propose an addition 2005-09-17 03:33:36 +02:00
features.conf Advertise smb2.c to be included in ELinks 0.12.0. 2007-03-27 01:41:26 +03:00
INSTALL Remove some suspiciously looking empty lines 2006-01-29 11:21:17 +01:00
Makefile Regenerate Makefile.config automatically if config.status has changed. 2005-12-06 14:59:06 +01:00
Makefile.config.in Apply the many changes to Makefile.lib in one go 2006-01-29 12:41:14 +01:00
Makefile.lib Apply the many changes to Makefile.lib in one go 2006-01-29 12:41:14 +01:00
NEWS NEWS: 0.11.3.GIT _now_ 2007-05-01 17:53:00 +03:00
README Drop .or from elinks.or.cz. 2005-12-29 04:35:02 +00:00
SITES Removed outdated entries. 2007-04-01 21:10:43 +03:00
THANKS Drop .or from elinks.or.cz. 2005-12-29 04:35:02 +00:00
TODO Drop .or from elinks.or.cz. 2005-12-29 04:35:02 +00:00

ELinks - an advanced web browser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ELinks is an advanced and well-established feature-rich text mode web
(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly
customizable and can be extended via scripts. It is very portable and runs
on a variety of platforms.

The ELinks official website is available at

	http://elinks.cz/

Please see the SITES file for mirrors or other recommended sites.  If you
want to install ELinks on your computer, see the INSTALL file for further
instructions.

A good start point is documentation files available in doc/, especially the
file named index.txt.

If you want to request features or report bugs, see community information at
http://elinks.cz/community.html and feedback information available at
http://elinks.cz/feedback.html.

If you want to write some patches, please first read the doc/hacking.txt
document.

If you want to add a new language or update the translation for an existing
one, please read po/README document.

If you want to write some documentation, well, you're welcome! ;)



Historical notes
~~~~~~~~~~~~~~~~

Initially, ELinks was a development version of Links (Lynx-like text WWW
browser), with more liberal features policy and development style.  Its purpose
was to provide an alternative to Links, and to test and tune various new
features, but still provide good rock-solid releases inside stable branches.

Why not contribute to Links instead?  Well, first I made a bunch of patches for
the original Links, but Mikulas wasn't around to integrate them, so I started
releasing my fork. When he came back, a significant number of them got refused
because Mikulas did not like them, as he just wouldn't have any use for them
himself.  He wants to keep Links with a relatively closed feature set and merge
only new features which he himself needs.  It has advantages that the tree is
very narrow and the code is small and contains very little bloat.

ELinks, on the contrary, aims to provide a full-featured web browser, superior
to both lynx and w3m and with the power (but not slowness and memory usage) of
Mozilla, Konqueror and similar browsers. However, to prevent drastic bloating
of the code, the development is driven in the course of modularization and
separation of add-on modules (like cookies, bookmarks, ssl, scripting etc).

For more details about ELinks history, please see

	http://elinks.cz/history.html

If you are more interested in the history and various Links clones and versions,
you can examine the website at

	http://links.sf.net/




vim: textwidth=80