- Add patch that fixes a smb bug that can cause short reads when copying

files
This commit is contained in:
Alexander Larsson 2008-02-14 12:53:56 +00:00
parent cf0a49a9bf
commit 76f496ffc2
2 changed files with 19 additions and 0 deletions

14
gvfs-smb-short-read.patch Normal file
View File

@ -0,0 +1,14 @@
Index: daemon/gvfschannel.c
===================================================================
--- daemon/gvfschannel.c (revision 1269)
+++ daemon/gvfschannel.c (working copy)
@@ -343,7 +343,8 @@
if (command == G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_CANCEL)
{
- if (arg1 == channel->priv->current_job_seq_nr)
+ if (arg1 == channel->priv->current_job_seq_nr &&
+ channel->priv->current_job != NULL)
g_vfs_job_cancel (channel->priv->current_job);
else
{

View File

@ -7,6 +7,7 @@ Group: System Environment/Libraries
URL: http://www.gtk.org
Source: http://download.gnome.org/sources/gvfs/0.1/gvfs-%{version}.tar.bz2
Patch1: gvfs-double-free.patch
Patch2: gvfs-smb-short-read.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pkgconfig
BuildRequires: glib2-devel >= 2.15.5
@ -39,6 +40,7 @@ required to develop applications using gvfs.
%setup -q
%patch1 -p0 -b .double-free
%patch2 -p0 -b .smb-short-read
%build
%configure
@ -121,6 +123,9 @@ killall -USR1 gvfsd > /dev/null || :
%{_libdir}/libgvfscommon.so
%changelog
* Thu Feb 14 2008 Alexander Larsson <alexl@redhat.com> - 0.1.7-2
- Add patch that fixes a smb bug that can cause short reads when copying files
* Tue Feb 12 2008 Alexander Larsson <alexl@redhat.com> - 0.1.7-2
- Fix double free in hal volume monitor
- Ensure gconf module is built by adding build dep