1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-03 08:07:17 -05:00
Commit Graph

1155 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
bd67e69bcd Bug 54: Don't disable XON/XOFF flow control.
Do not clear the IXON flag in termios.c_iflag.
Bug 54 did not actually ask for this flag to be kept,
but the cable I am using doesn't seem to have the handshake
lines connected right, so XON/XOFF is a must at 38400 bps,
at least until ELinks learns to send padding based on terminfo.

Any user who has bound actions to Ctrl+S or Ctrl+Q and finds that
they no longer work should just "stty -ixon" before running ELinks.
We don't have any default bindings for those keys, fortunately.

(cherry picked from commit a3d093bd25
 but moved the NEWS entry into the 0.11.4rc0 section)
2008-02-08 00:34:11 +02:00
Kalle Olavi Niemitalo
9c39f43d1b Bug 54: Don't force 8-bit characters and no parity.
Actually, don't use the cfmakeraw function at all,
and don't look for it during configure either.

(cherry picked from commit 87f1661314
 but moved the NEWS entry into the 0.11.4rc0 section)
2008-02-08 00:32:07 +02:00
Kalle Olavi Niemitalo
b2e59f8576 Define datarootdir in Makefile.config.in, for better Autoconf compatibility.
With Autoconf 2.60a, the default values of datadir, infodir, and
mandir refer to ${datarootdir}.  If Makefile.config.in does not define
datarootdir, Autoconf detects this and expands ${datarootdir} when it
substitutes expressions like @datadir@, but it also outputs the
following warning:

config.status: creating Makefile.config
config.status: WARNING:  /home/Kalle/src/elinks/Makefile.config.in seems to ignore the --datarootdir setting

According to a comment in config.status, "This hack should be removed
a few years after 2.60."  So it seems best to prepare for that now by
defining datarootdir = @datarootdir@ in Makefile.config.in.  Earlier
versions of Autoconf may leave that line unexpanded; but because the
makefiles do not directly refer to ${datarootdir}, there's no harm.
(cherry picked from commit 388b1b0efd)
2008-02-07 23:40:23 +02:00
Jonas Fonseca
e1d82ba441 Fix expansion when setting LOCALEDIR
Use the localedir variable so configure's --localedir option is
honoured. Expand the variable twice to first expand the datadir
and then the prefix variable referenced by datadir.

Noticed by Witold, who also made a similar fix (modulo --localedir)
in elinks-0.12 098fb87065.
2008-02-07 11:43:11 +01:00
Jonas Fonseca
504eb26ae5 elinks-0.11.4rc0.GIT 2008-02-05 00:29:57 +01:00
Jonas Fonseca
cbae4b250d elinks-0.11.4rc0 2008-02-04 23:36:56 +01:00
Witold Filipczyk
53f4e05b51 Polish translation was updated. 2008-01-29 18:57:50 +01:00
Miciah Dashiel Butler Masters
5eba524121 Missing change from last commit 2008-01-27 18:50:16 +00:00
Miciah Dashiel Butler Masters
6aa99fa078 Add KEYMAP_INVALID value for enum keymap_id and properly check for it
get_keymap_id returns -1 when it can't find the keymap.  Because the return
type of get_keymap_id is enum keymap_id and enum keymap_id did not have any
explicit values defined, it could be unsigned, which meant that when
get_keymap_id returned -1, it was really returning a huge positive number.
This meant that when callers checker whether the return value was negative,
they were essentially performing no check at all, so they might give
get_keymap_id an invalid keymap name, get back an invalid keymap_id, and
use that invalid keymap_id.

This commit adds KEYMAP_INVALID = -1 to enum keymap_id and makes all
functions that deal with the enumeration use that symbol.
2008-01-27 18:50:16 +00:00
Miciah Dashiel Butler Masters
7e0c0e14e2 Strings corrections from Malcolm Parsons
Fix the spelling and grammar in various comments, variable names, comment
descriptions, and documentation.
2008-01-27 04:17:47 +00:00
Kalle Olavi Niemitalo
a25fd18e56 Detect all overflows in BitTorrent parse_bencoding_integer.
The previous check (integer > (off_t) integer * 10) did not detect all
overflows.  Examples with 32-bit off_t:

integer = 0x1C71C71D (0x100000000/9 rounded up);
integer * 10 = 0x11C71C722, wraps to 0x1C71C722 which is > integer.

integer = 0x73333333;
integer * 10 = 0x47FFFFFFE, wraps to 0x7FFFFFFE which is > integer.

Examples with 64-bit off_t:

integer = 0x1C71C71C71C71C72 (0x10000000000000000/9 rounded up);
integer * 10 = 0x11C71C71C71C71C74, wraps to 0x1C71C71C71C71C74
which is > integer.

integer = 0x7333333333333333;
integer * 10 = 0x47FFFFFFFFFFFFFFE, wraps to 0x7FFFFFFFFFFFFFFE
which is > integer.

It is unclear to me what effect an undetected overflow would actually
have from the user's viewpoint, so I'm not adding a NEWS entry.
2008-01-26 16:42:27 +02:00
Kalle Olavi Niemitalo
f3bad399e2 Don't assume sizeof(int)==4 in bittorrent 2008-01-26 15:55:46 +02:00
Jonas Fonseca
c2a0d3b969 Use git tools instead of cogito for getting the build ID
The build ID now includes both last tagged version, commit generation
since last tagged version, as well as the leading characters of the
commit ID and a flag for dirty working tree.
2008-01-22 13:31:58 +01:00
Jonas Fonseca
5999d1ef06 Change elinks.or.cz references to elinks.cz
Except for the contrib area changes, they are already in elinks-0.12 and
master.
2008-01-22 12:36:21 +01:00
Kalle Olavi Niemitalo
7515c9753f NEWS: sort by severity 2008-01-22 00:37:36 +02:00
Kalle Olavi Niemitalo
3db6c84f4c Bug 997: Fix unlikely stack corruption in get_pasv_socket.
It is unlikely because the standard members of struct sockaddr_in
(sin_family, sin_port, sin_addr) already require at least 8 bytes
and I don't know of any system that has size_t larger than that.
Besides, at least glibc pads the structure to 16 bytes.
2008-01-22 00:37:36 +02:00
Kalle Olavi Niemitalo
b17fc12036 get_pasv_socket: Use AF_INET6 when appropriate.
When get_pasv6_socket was merged into get_pasv_socket on 2005-04-15,
the AF_INET6 of get_pasv6_socket was lost and the merged function
always returned AF_INET sockets.  This then made getsockname fill
only part of the struct sockaddr_in6, and ELinks sent to the server
an EPRT command that had half the bits missing from the IPv6 address.
At least ftp.funet.fi then rejected the command, helpfully saying
what the address should have been.

This commit fixes active FTP over IPv6.  Passive FTP was already fixed
in 0.11.3.GIT (887d650efe), on 2007-05-01.
2008-01-22 00:37:36 +02:00
Jonas Fonseca
5e8ddbd6ab Update fuzzy messages in the Danish translation 2008-01-19 13:03:02 +01:00
Kalle Olavi Niemitalo
95a40f238f NEWS: mention bug 989
This was already fixed in commit 5210d97c37
but not added to Bugzilla before today.
2008-01-07 21:55:26 +02:00
Kalle Olavi Niemitalo
383f95505f Move debian to contrib/debian.
Today on the elinks-dev mailing list, the new maintainer of the Debian
elinks package asked the debian directory to be removed from released
tarballs, because it makes the Debian diff hard to read.  Also, the
files there are out of date.

When the debian directory was discussed in April 2007, people didn't
want it to be removed, so I instead moved it to contrib/debian in
ELinks 0.12.GIT (599cf3d91e).
And now I'm doing the same in 0.11.3.GIT.
2008-01-06 22:27:25 +02:00
Jonas Fonseca
f587e88839 Fix smjs scripting #ifdefs to use CONFIG_SM_SCRIPTING
(cherry picked from commit ccc6527bba)
2007-12-17 23:15:02 +02:00
Witold Filipczyk
7b6fefb0f1 pl.po: missing tilde 2007-12-17 18:45:54 +01:00
Witold Filipczyk
6d1240a996 Polish translation was updated. The patch by Jakub Bogusz. 2007-12-17 18:43:42 +01:00
Kalle Olavi Niemitalo
fdc2797948 Document that GNU Make >= 3.78 is needed, and check it.
(cherry picked from commit 4ffbf1faed)
2007-12-09 08:17:24 +02:00
Kalle Olavi Niemitalo
5210d97c37 Enable asciidoc7compatible mode.
AsciiDoc 8 has changed the syntax again and generates e.g. subscripts
where we don't want them.  Instead of updating the documents, I'll
just enable a compatibility mode so that ELinks doesn't require
AsciiDoc 8 yet.
2007-11-25 09:02:28 +02:00
Witold Filipczyk
2e926b7d4b bug 978: Python's webbrowser.open_new_tab(URL) works since now. 2007-11-22 19:09:20 +01:00
Kalle Olavi Niemitalo
5477c215f4 NEWS: Bug 975 was not in previous versions. 2007-11-19 22:56:13 +02:00
Kalle Olavi Niemitalo
de23a950f4 Bug 975: Fix int/size_t pointer type mismatch.
On machines where sizeof(size_t) > sizeof(int), this could corrupt the stack.
I think -Wno-pointer-sign added by configure hid this bug until now.
STRLEN is correct in Perl 5.6.0 and later, perhaps earlier too.
2007-11-11 10:31:19 +02:00
Kalle Olavi Niemitalo
355deabaab NEWS: mention the builtin_modules warning 2007-11-11 10:20:45 +02:00
Kalle Olavi Niemitalo
fa20852ce2 GCC 4.2.1 needs -Wno-address, not -Wno-always-true.
[ Backported from ELinks 0.12.GIT.  The 0.11 branch is still using
  older Autoconf macros.  ]
2007-11-11 10:19:19 +02:00
Kalle Olavi Niemitalo
8165e85d82 Use -Wno-always-true only if $CC accepts it. GCC 4.1 doesn't. 2007-11-11 10:05:39 +02:00
Witold Filipczyk
809b03efdf Do not show always evaluate as true warnings. 2007-11-11 10:05:32 +02:00
Kalle Olavi Niemitalo
ea12f34638 NEWS: Bug 937 is CVE-2007-5034. 2007-11-05 01:14:47 +02:00
Kalle Olavi Niemitalo
e00b6cf7a8 Rewrite wiki to en.wikipedia.org, avoid server bug.
<http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley>
incorrectly redirects to
<http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley>
which searches for "sue%20lawley" rather than "sue lawley".
By using en.wikipedia.org directly, we avoid the server bug.
Prompted by an elinks-users post on 2007-07-27.

I asked on #wikimedia-tech, and www.wikipedia.org does always
redirect to en.wikipedia.org; it does not guess any other
language based on headers or IP addresses or such.  Also, the
redirection exists only for compatibility, and skipping it
avoids a few roundtrips to the server.  So this change is good
even if the server is eventually fixed.
(cherry picked from commit fd902e81da)
2007-07-30 16:05:40 +03:00
Kalle Olavi Niemitalo
f02778e1c3 Remove gettext doc excerpt until the license is sorted out.
The Free Software Foundation has distributed the GNU gettext manual
under at least two different licenses (a brief copyleft and GNU FDL),
but neither of those seems compatible with the GPLv2 of ELinks.
(cherry picked from commit 9c1873a517)
2007-07-22 01:45:35 +03:00
Kalle Olavi Niemitalo
e9f9d70492 configure.in: Actually the snapshots aren't daily. 2007-07-11 23:00:53 +03:00
Kalle Olavi Niemitalo
4e2bff364a NEWS: mention bug 959 2007-07-10 16:46:29 +03:00
Witold Filipczyk
2fe43f275d configure.in: X11 - try link an executable using -lX11.
[ Backported from commit 6bbd8e1686 in
  ELinks 0.12.GIT on 2007-07-05, for bug 959.  --KON ]
2007-07-10 16:10:02 +03:00
Kalle Olavi Niemitalo
4d6df8128d NEWS: mention bugs 613, 714, 961 2007-07-10 15:38:11 +03:00
Witold Filipczyk
37c04db1d6 check_html_form_hierarchy: Old code was buggy.
Old code caused the assertion failure on the shutdownday's page.
2007-07-10 15:35:23 +03:00
Kalle Olavi Niemitalo
134ac92527 Debian bug 431211: Correct GNU GPL version in debian/copyright. 2007-07-06 02:10:26 +03:00
Kalle Olavi Niemitalo
80f25486ff NEWS: sync with 0.12.GIT 2007-07-02 23:55:53 +03:00
Kalle Olavi Niemitalo
50e3fe7c73 NEWS: mention bug 936
[ Backported from commit c1e89ee375 in
  ELinks 0.12.GIT.  --KON ]
2007-07-02 22:56:02 +03:00
Kalle Olavi Niemitalo
96fc8419df Bug 936: Allow Autoconf 2.59 too, for elinks.cz compatibility.
[ From commit 045c5509f5 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:54:18 +03:00
Kalle Olavi Niemitalo
c4873ba243 Bug 936: Require Autoconf 2.61 or later.
[ From commit b2d95b11f5 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:53:44 +03:00
Kalle Olavi Niemitalo
45767788b1 Bug 936: Create stamp-h.in in autogen.sh.
[ From commit 6572a506f2 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:53:11 +03:00
Witold Filipczyk
6bec461302 contrib: Tool for view pages offline.
This tool is intended for developers to make debugging ELinks more fun.

[ From commit 4e310fd9aa in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:51:49 +03:00
Witold Filipczyk
9470cbbc1e test, CGI: added a simple form to test CGI.
[ From commit 1b0bad8cbc in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:50:33 +03:00
Kalle Olavi Niemitalo
a8fd05b401 SMJS: Fix error "forms.namedItem is not a function".
Commit 63752c854b303f5f58636a512a137bf3702e051b on 2004-12-27
seems to have broken this.

[ From commit c9b2fbbd46 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:49:09 +03:00
Kalle Olavi Niemitalo
8d02ae75c8 Link to gitweb at repo.or.cz, rather than pasky.or.cz.
The history converted from CVS is not in repo.or.cz though, so keep
referring to pasky.or.cz for that.  (We don't seem to use
"gitweb.elinks.cz", which is a DNS alias for pasky.or.cz.)

<paakku> Do you think we should maybe point people to gitweb at
    repo.or.cz rather than pasky.or.cz?
<pasky> absolutely
<pasky> actually I thought we already are pointing people at
    repo.or.cz
<pasky> at least there was some movement to do that already, I believe
    :)

[ From commit 9f75e1f094 in ELinks
  0.12.GIT.  --KON ]
2007-07-02 22:41:42 +03:00