* direntry.c (vfs_s_retrieve_file): Please, care about
fish.local_stat ... * fish.c (linear_close): ... here.
Этот коммит содержится в:
родитель
c5626b241c
Коммит
12ba0fc8a4
@ -1,5 +1,9 @@
|
|||||||
2002-05-21 Andrew V. Samoilov <kai@cmail.ru>
|
2002-05-21 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
|
* direntry.c (vfs_s_retrieve_file): Please, care about
|
||||||
|
fish.local_stat ...
|
||||||
|
* fish.c (linear_close): ... here.
|
||||||
|
|
||||||
* ftpfs.c (linear_read): Unset control_connection_buzy
|
* ftpfs.c (linear_read): Unset control_connection_buzy
|
||||||
on EOF.
|
on EOF.
|
||||||
(ftpfs_fh_close): Call vfs_s_invalidate ().
|
(ftpfs_fh_close): Call vfs_s_invalidate ().
|
||||||
|
@ -970,9 +970,6 @@ vfs_s_retrieve_file(vfs *me, struct vfs_s_inode *ino)
|
|||||||
MEDATA->linear_close (me, &fh);
|
MEDATA->linear_close (me, &fh);
|
||||||
close(handle);
|
close(handle);
|
||||||
|
|
||||||
if (stat (ino->localname, &ino->u.fish.local_stat) < 0)
|
|
||||||
ino->u.fish.local_stat.st_mtime = 0;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
error_1:
|
error_1:
|
||||||
MEDATA->linear_close (me, &fh);
|
MEDATA->linear_close (me, &fh);
|
||||||
|
@ -610,7 +610,9 @@ static void
|
|||||||
linear_close (vfs *me, vfs_s_fh *fh)
|
linear_close (vfs *me, vfs_s_fh *fh)
|
||||||
{
|
{
|
||||||
if (fh->u.fish.total != fh->u.fish.got)
|
if (fh->u.fish.total != fh->u.fish.got)
|
||||||
linear_abort(me, fh);
|
linear_abort(me, fh);
|
||||||
|
else if (stat (fh->ino->localname, &fh->ino->u.fish.local_stat) < 0)
|
||||||
|
fh->ino->u.fish.local_stat.st_mtime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user