Bill Pringlemeir wrote:
> On 7 May 2007, [EMAIL PROTECTED] wrote:
> > gtk-gnutella aborted unexpectedly.
 
> > this warning was posted to the console:
> >> 07-05-07 15:48:19 (WARNING): stat("/Users/mlye/gtk-gnutella-
 
> [snip]
 
> >> 物)(ア.00.JPG") returned -1 with errno = 63 (File
> >> name too long)
 
> >> ** ERROR **: no luck with random number generator
> >> aborting...

> I can not say if the problem has been corrected.  Some very long file
> name has been passed to a routine.

You could reproduce this error by using a magnet with a filename longer than
255 characters. The first time there's no problem. The second time, a filename
clash occurs and we have to generate a unique filename. unique_filename() did
not respect the maximum filename limit and since we cannot handle this
gracefully in fileinfo_new_outname() as we don't expect it to fail, the code
bails out there.

> There have been some SVN commits related to file names recently.

Yes, thanks for fixing the bug in gm_sanitize_filename(). I didn't compile with
optimization, so there wasn't a warning. I've just fixed some other corner
cases in unique_filename() too.

-- 
Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gtk-gnutella-devel mailing list
Gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to