Jonas Fonseca <[EMAIL PROTECTED]> wrote Sun, Mar 20, 2005: > Hugo Haas <[EMAIL PROTECTED]> wrote Sun, Mar 20, 2005: > > Package: elinks > > Followup-For: Bug #296976 > > > > #296976 is marked as serious against elinks. However, it seems to me > > that it's just the sgml2x package not using the right option when > > calling elinks. > > > > Should this really prevent elinks 0.10.2-2 from getting into sarge? [...] > Looks like it has actually been closed, but that the bts cannot parse > the ``closes'' tag? [...]
Sorry for being so clueless ... after reading all posts ... A possible fix could be to automatically allow special files when --dump or --source is used. Also, checking for non-empty command line URL list should be done before trying to read from /dev/stdin so it doesn't happen when an URL was given. Index: src/main.c =================================================================== RCS file: /home/cvs/elinks/elinks/src/main.c,v retrieving revision 1.235 diff -u -d -p -r1.235 main.c --- src/main.c 20 Mar 2005 10:20:34 -0000 1.235 +++ src/main.c 20 Mar 2005 12:13:43 -0000 @@ -73,8 +73,12 @@ check_stdio(struct list_head *url_list) { /* Should the document be read from stdin? */ if (!isatty(STDIN_FILENO)) { - if (url_list) + /* Only start reading from stdin if no URL was given on the + * command line. */ + if (url_list && list_empty(*url_list)) { + get_opt_bool("protocol.file.allow_special_files") = 1; add_to_string_list(url_list, "file:///dev/stdin", 17); + } get_cmd_opt_bool("no-connect") = 1; } -- Jonas Fonseca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]