gnome_vfs_read_entire loops

I tried to launch
gedit 'file:///tmp/test.gz#gzip:'
and it hung. Some debugging show that it get looped in
gnome_vfs_read_entire_file when byte_read is zero all the time and
the result is GNOME_VFS_OK.
Looking to gzip-method.c, i saw that when it get Z_STREAM_END, it
return GNOME_VFS_OK and set bytes_read to zero. I changed it to
GNOME_VFS_ERROR_EOF, then gedit runs fine.
I'm not sure if it's a bug or not. It seems like bzip-method returns
GNOME_VFS_OK when eof too.
Could you verify this please?
PS. I'm using gnome-vfs-2.6.0
Bi Cờ Lao

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]