diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-09-25 10:20:34 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-25 10:20:34 +0000 |
commit | 859df2b3e972dab303155360dd0d1d16b942cb30 (patch) | |
tree | 5008736ca7dff4590836f17ab4212008121c62bd | |
parent | 3d7fcf248db3b5314d61950510d85b1b0e37af14 (diff) | |
download | gvfs-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-- | ChangeLog | 9 | ||||
-rw-r--r-- | client/gvfsdaemondbus.c | 2 | ||||
-rw-r--r-- | daemon/sftp.mount.in | 2 |
3 files changed, 11 insertions, 2 deletions
@@ -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 |