1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Bug 939: Documented the fix.

The fix itself is in the parent commit.
(cherry picked from commit 4c390589ea,
 rewriting the NEWS entry because the bug also occurred on Debian)
This commit is contained in:
Kalle Olavi Niemitalo 2008-01-19 10:55:11 +02:00 committed by Kalle Olavi Niemitalo
parent 26a4033cca
commit 481041ae48
2 changed files with 10 additions and 0 deletions

1
NEWS
View File

@ -31,6 +31,7 @@ To be released as 0.11.4.
* bug 712: GnuTLS works on https://www-s.uiuc.edu/[]
* fix active and passive FTP over IPv6
* bug 938: elinks -remote no longer needs a controlling tty
* bug 939: fix FSP directory listing (some compiler options left it empty)
* bug 978: Python's webbrowser.open_new_tab(URL) works since now
* minor bug 54, Debian bug 338402: don't force the terminal to 8 bits
with no parity, and don't disable XON/XOFF flow control either

View File

@ -90,6 +90,13 @@ compare(FSP_RDENTRY *a, FSP_RDENTRY *b)
static void
sort_and_display_entries(FSP_DIR *dir)
{
/* fsp_readdir_native in fsplib 0.9 and earlier requires
* the third parameter to point to a non-null pointer
* even though it does not dereference that pointer
* and overwrites it with another one anyway.
* http://sourceforge.net/tracker/index.php?func=detail&aid=1875210&group_id=93841&atid=605738
* Work around the bug by using non-null &tmp.
* Nothing will actually read or write tmp. */
FSP_RDENTRY fentry, tmp, *table = NULL;
FSP_RDENTRY *fresult = &tmp;
int size = 0;
@ -157,6 +164,8 @@ fsp_directory(FSP_SESSION *ses, struct uri *uri)
if (get_opt_bool("protocol.fsp.sort")) {
sort_and_display_entries(dir);
} else {
/* &tmp works around a bug in fsplib 0.9 or earlier.
* See sort_and_display_entries for details. */
FSP_RDENTRY fentry, tmp;
FSP_RDENTRY *fresult = &tmp;
unsigned char dircolor[8];