* fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
transfer abort.
Этот коммит содержится в:
родитель
278ae44436
Коммит
b20f6b2dea
@ -1,3 +1,8 @@
|
||||
2004-12-28 Dmitry Butskoj <buc@odusz.so-cdu.ru>
|
||||
|
||||
* fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
|
||||
transfer abort.
|
||||
|
||||
2004-12-27 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* extfs.c (extfs_generate_entry): Initialize inode->last_in_subdir.
|
||||
|
@ -619,9 +619,11 @@ fish_linear_abort (struct vfs_class *me, struct vfs_s_fh *fh)
|
||||
print_vfs_message( _("Aborting transfer...") );
|
||||
do {
|
||||
n = MIN(8192, fh->u.fish.total - fh->u.fish.got);
|
||||
if (n)
|
||||
if (n) {
|
||||
if ((n = read(SUP.sockr, buffer, n)) < 0)
|
||||
return;
|
||||
fh->u.fish.got += n;
|
||||
}
|
||||
} while (n);
|
||||
|
||||
if (fish_get_reply (me, SUP.sockr, NULL, 0) != COMPLETE)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user