Tue 16 Aug 2005 09:20:55 PM UTC, original submission:
THIS ITEM WAS REASSIGNED TO PATCH #7280
I have observed a bad behavior of make_torrent.
When a multifile torrent should be created users have exactly to look that they do not append an ending / in the command line while creating a torrent. If then did not, the finished torrent gets a bad torrent "name"
this example should show what happend when I create an torrent:
1.
./make_torrent -tracker "www.mldonkey.net" -torrent donitor.torrent -create donitor/
when checking with
./make_torrent -torrent donitor.torrent -print
output is:
-----
home@server:/home/mldonkey # ./make_torrent -torrent donitor.torrent -print
2005/08/16 23:08:48 Starting MLDonkey 2.6.1 ...
2005/08/16 23:08:48 Language DE, locale ISO-8859-15
2005/08/16 23:08:48 MLDonkey is working in .
2005/08/16 23:08:48 [DNS]: Resolving [server] ...
Torrent name: .
comment: Created by MLdonkey/2.6.2.CVS
created by: MLdonkey/2.6.2.CVS
creation date: 23:08 Tue 16 Aug
modified by:
length: 351775
encoding:
tracker: http://www.mldonkey.net
private: 0
piece size: 262144
Pieces: 2
0: WVER2KDOAGQVFCKVDDHDIQEUBSSXHPBF
1: EYROJMGDENVQG5MFWCNYPPSVJTPCW4UC
Files: 22
53 : dbase/README.txt
272560 : dbase/esel.rrd
37 : dbase/totals.csv
1215 : ABOUT.txt
2240 : CHANGELOG.txt
3259 : INSTALL.txt
379 : UPDATE.txt
11839 : sbin/update_rrd.pl
11833 : sbin/update_rrd.pl_org
78 : tmp/README.txt
78 : www/images/README.txt
1920 : www/images/esel.gif
5258 : www/images/last12h.gif
4979 : www/images/last2d.gif
4728 : www/images/last32d.gif
4369 : www/images/last8d.gif
2799 : www/images/peers.gif
3749 : www/images/protocol.gif
4160 : www/images/workload.gif
242 : www/index.html
8000 : www/monitor.cgi
8000 : www/monitor.cgi_org
--------
have a look on "Torrent name: . "
2. now let create the torrent like:
./make_torrent -tracker "www.mldonkey.net" -torrent donitor.torrent -create donitor
and -print shows now the right output:
-----
home@server:/home/mldonkey # ./make_torrent -torrent donitor.torrent -print
2005/08/16 23:12:25 Starting MLDonkey 2.6.1 ...
2005/08/16 23:12:25 Language DE, locale ISO-8859-15
2005/08/16 23:12:25 MLDonkey is working in .
2005/08/16 23:12:25 [DNS]: Resolving [server] ...
Torrent name: donitor
comment: Created by MLdonkey/2.6.2.CVS
created by: MLdonkey/2.6.2.CVS
creation date: 23:12 Tue 16 Aug
modified by:
length: 351775
encoding:
tracker: http://www.mldonkey.net
private: 0
piece size: 262144
Pieces: 2
0: WVER2KDOAGQVFCKVDDHDIQEUBSSXHPBF
1: EYROJMGDENVQG5MFWCNYPPSVJTPCW4UC
Files: 22
-----
Torrent name now is right >> donitor
Now, is it a littel bug ? when not it should be mentioned in make_torrent --help
P.S: what das private: 0/1 mean?
|