[Pkg-xfce-devel] Bug#583922: Bug#583922: thunar: does not check return value of close() when copying files
Yves-Alexis Perez
corsac at debian.org
Mon May 31 19:42:34 UTC 2010
On lun., 2010-05-31 at 13:33 -0400, John Lindgren wrote:
> tags 583922 patch
> thanks
>
> --- thunar-vfs-io-local-xfer.c.0 2010-05-21 13:10:52.000000000 -0400
> +++ thunar-vfs-io-local-xfer.c 2010-05-31 13:14:00.555777901 -0400
> @@ -330,6 +330,11 @@
> futimes (target_fd, times);
> #endif
>
> + /* check that the data is successfully written */
> + if (G_UNLIKELY (fsync (target_fd) < 0))
> + tvilx_set_error_with_path (error, _("Failed to sync data to \"%s\""),
> + target_absolute_path);
> +
> /* close the file descriptors */
> close (target_fd);
> end1:
It seems that it's not the right patch for the right bug. This one looks
more useful for #583325.
--
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20100531/b93438df/attachment.pgp>
More information about the Pkg-xfce-devel
mailing list