summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-09-25 10:20:34 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-25 10:20:34 +0000
commit859df2b3e972dab303155360dd0d1d16b942cb30 (patch)
tree5008736ca7dff4590836f17ab4212008121c62bd
parent3d7fcf248db3b5314d61950510d85b1b0e37af14 (diff)
downloadgvfs-859df2b3e972dab303155360dd0d1d16b942cb30.tar.gz
Clear VfsConnectionData on creation (fixes read of uninitialized data on
2007-09-25 Alexander Larsson <alexl@redhat.com> * client/gvfsdaemondbus.c: Clear VfsConnectionData on creation (fixes read of uninitialized data on thread shutdown) * daemon/sftp.mount.in: Correct the type to "sftp" svn path=/trunk/; revision=962
-rw-r--r--ChangeLog9
-rw-r--r--client/gvfsdaemondbus.c2
-rw-r--r--daemon/sftp.mount.in2
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 661f509f..fd721371 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2007-09-25 Alexander Larsson <alexl@redhat.com>
+ * client/gvfsdaemondbus.c:
+ Clear VfsConnectionData on creation
+ (fixes read of uninitialized data on thread shutdown)
+
+ * daemon/sftp.mount.in:
+ Correct the type to "sftp"
+
+2007-09-25 Alexander Larsson <alexl@redhat.com>
+
* daemon/mount.c:
Return NOT_SUPPORTED error for unsupported uri types
diff --git a/client/gvfsdaemondbus.c b/client/gvfsdaemondbus.c
index f127aff4..943ee67b 100644
--- a/client/gvfsdaemondbus.c
+++ b/client/gvfsdaemondbus.c
@@ -160,7 +160,7 @@ vfs_connection_setup (DBusConnection *connection,
{
VfsConnectionData *connection_data;
- connection_data = g_new (VfsConnectionData, 1);
+ connection_data = g_new0 (VfsConnectionData, 1);
connection_data->extra_fd = extra_fd;
connection_data->extra_fd_count = 0;
diff --git a/daemon/sftp.mount.in b/daemon/sftp.mount.in
index a6bac449..21d1a418 100644
--- a/daemon/sftp.mount.in
+++ b/daemon/sftp.mount.in
@@ -1,4 +1,4 @@
[Mount]
-Type=ftp
+Type=sftp
Exec=@libexecdir@/gvfs-daemon-sftp
AutoMount=false