Ok, I have played with my downloads.ini a bit and I have found out that
the culprit is the line
motd_html = "<br><div align=\"center\"><h3>Welcome to MLdonkey</h3></div>"
If I remove this line, everything works great. If I create a file 'test'
containing only this single line and call
# mldonkey_options -f test -g motd_html
I get the 'lexing: empty token' crap.
This makes me suspect that mldonkey_options does not honour escaped quotes
( \" ) correctly. Here's the proof:
1) Create a file named 'test' containing a single line
variable = "\"string\""
and run
mldonkey_options -f test -g variable. You'll get the 'empty token'.
Worse yet, if the single line reads
variable = "aa\"bb"
we get a segmentation fault.
L.
On Thu, 25 May 2006, Sylvain Le Gall wrote:
Hello,
On Tue, May 09, 2006 at 05:50:19PM +0200, Leszek Koltunski wrote:
The reason is that there's something wrong with /usr/bin/mldonkey_options.
For example, the 'config' script ( line 51 ) contains
db_set mldonkey-server/client_name `/usr/bin/mldonkey_options -f
$MLDONKEY_DIR/downloads.ini -g client_name`
try executing ( with appropriate value in place of $MLDONKEY_DIR )
/usr/bin/mldonkey_options -f $MLDONKEY_DIR/downloads.ini -g client_name
from the command line and you will get
Fatal error: exception Failure("lexing: empty token")
even though your 'donwloads.ini' file DOES set 'client_name'.
Leszek
mldonkey_options parse the whole downloads.ini, this means that if there
is an error regarding the parser it could be anywhere in the file...
Kind regard
Sylvain Le Gall
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]