[Pkg-xfce-devel] Bug#583922: thunar: does not check return value of close() when copying files
John Lindgren
john.lindgren at tds.net
Mon May 31 17:33:16 UTC 2010
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:
More information about the Pkg-xfce-devel
mailing list