summaryrefslogtreecommitdiff
path: root/daemon
Commit message (Collapse)AuthorAgeFilesLines
* Return G_IO_ERROR_CANT_CREATE_BACKUP in the below case instead of notAlexander Larsson2009-02-161-6/+14
| | | | | | | | | | | 2009-02-16 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c (replace_create_temp_reply): Return G_IO_ERROR_CANT_CREATE_BACKUP in the below case instead of not copying the ownership. svn path=/trunk/; revision=2224
* Bug 546482 – Keep ownership when replacing files on sftpAlexander Larsson2009-02-161-1/+113
| | | | | | | | | | | | | | | | | 2009-02-16 Alexander Larsson <alexl@redhat.com> Bug 546482 – Keep ownership when replacing files on sftp * daemon/gvfsbackendsftp.c: Try to copy ownership. If this fails revert to truncate and overwrite, unless make_backup is set. Ideally we should handle the backup case too, but that requires more code. Patch from Jesse van den Kieboom. svn path=/trunk/; revision=2223
* 536305 – incorrect GError propagation in the httChristian Kellner2009-02-161-1/+31
| | | | | | | | | | | | 2009-02-16 Christian Kellner <gicmo@gnome.org> 536305 – incorrect GError propagation in the htt * daemon/gvfsbackenddav.c: Convert soup errors to gio errors. Patch from Jesse van den Kieboom svn path=/trunk/; revision=2221
* Bug 529349 – Redirects with username doesn't workAlexander Larsson2009-02-161-0/+4
| | | | | | | | | | | | | | 2009-02-16 Alexander Larsson <alexl@redhat.com> Bug 529349 – Redirects with username doesn't work * daemon/gvfsbackenddav.c: (redirect_handler): Copy username and password when redirecting. Patch from Mads Chr. Olesen svn path=/trunk/; revision=2220
* Bug 566452 – Error when creating folder on webdav shareAlexander Larsson2009-02-161-6/+7
| | | | | | | | | | | | | | 2009-02-16 Alexander Larsson <alexl@redhat.com> Bug 566452 – Error when creating folder on webdav share * daemon/gvfsbackenddav.c: (redirect_handler): Don't intercept "201 Created" return as a redirection Patch from Mads Chr. Olesen svn path=/trunk/; revision=2219
* Bug 570533 – use g_set_error_literalCosimo Cecchi2009-02-133-17/+17
| | | | | | | | | | | | | | | | 2009-02-13 Cosimo Cecchi <cosimoc@gnome.org> Bug 570533 – use g_set_error_literal * daemon/gvfsbackendobexftp.c: (_push_single_file_helper): * daemon/gvfsbackendtrash.c: (trash_backend_get_file), (trash_backend_open_for_read), (trash_backend_delete), (trash_backend_pull): * daemon/trashlib/trashitem.c: (trash_item_delete): use g_set_error_literal() when appropriate. Patch by Christian Persch. svn path=/trunk/; revision=2214
* Bug 563788 – GNOME Goal: Clean up GLib and GTK+ includesBastien Nocera2009-02-056-6/+4
| | | | | | | | | | | | | | | | | | 2009-02-05 Bastien Nocera <hadess@hadess.net> Bug 563788 – GNOME Goal: Clean up GLib and GTK+ includes * client/gvfsuriutils.h: * daemon/gvfsbackendburn.c: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackenddnssd.c: * daemon/gvfsbackendnetwork.c: * daemon/gvfsdaemonutils.c: * daemon/mount.c: Fix build for single GTK+ include, patch from Luis Menina <liberforce@freeside.fr> (Closes: #563788) svn path=/trunk/; revision=2201
* Bug 570481 – Please add translator commentsRyan Lortie2009-02-041-2/+2
| | | | | | | | | | | | 2009-02-04 Ryan Lortie <desrt@desrt.ca> Bug 570481 – Please add translator comments * daemon/gvfsbackendtrash.c: use clearer language to make it easier to translate (not to mention, easier to understand in English). svn path=/trunk/; revision=2199
* Bug 570193 – Mounting phone connected via Bluetooth failsBastien Nocera2009-02-031-9/+18
| | | | | | | | | | | | | 2009-02-03 Bastien Nocera <hadess@hadess.net> Bug 570193 – Mounting phone connected via Bluetooth fails * daemon/gvfsbackendobexftp.c (_get_bluetooth_device_properties): Use a private connection to connect to the system D-Bus, thanks to Alexander Larsson svn path=/trunk/; revision=2194
* Fix possible double-free when the display name is freed Avoid errors whenBastien Nocera2009-02-031-1/+3
| | | | | | | | | | | 2009-02-03 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (do_mount): Fix possible double-free when the display name is freed Avoid errors when the icon name couldn't be gathered svn path=/trunk/; revision=2193
* Bug 511671 - Make obex-ftp work over usb connectionsBastien Nocera2009-02-022-29/+325
| | | | | | | | | | | | | | | | | | | 2009-02-02 Bastien Nocera <hadess@hadess.net> Bug 511671 - Make obex-ftp work over usb connections * configure.ac: Require HAL for the ObexFTP backend * daemon/Makefile.am: * daemon/gvfsbackendobexftp.c (_get_numbers_from_usb_path), (_is_nokia_3650), (_get_bluetooth_name_and_icon), (_get_bluetooth_device_properties), (_is_same_path), (_find_ods_usb_intfnum), (_get_usb_intfnum_and_properties), (do_mount): Add support for USB ObexFTP devices, original patch from Alexander Kanavin <ak@sensi.org>, requires current obex-data-server trunk svn path=/trunk/; revision=2188
* Bug 512144 – symlinks to folders are deleted recursivelyRyan Lortie2009-01-301-2/+5
| | | | | | | | | | | | | 2009-01-28 Ryan Lortie <desrt@desrt.ca> Bug 512144 – symlinks to folders are deleted recursively * desrt: place a paper bag over my face * daemon/trashlib/trashexpunge.c: try a lot harder to not follow symlinks. svn path=/trunk/; revision=2187
* Bug 569480 – trash backend crashes due to invalid writeRyan Lortie2009-01-281-1/+1
| | | | | | | | | | | | | | 2009-01-28 Ryan Lortie <desrt@desrt.ca> Bug 569480 – trash backend crashes due to invalid write * daemon/trashlib/trashitem.c (trash_item_escape_name): correct extremely silly mistake. Problem caught by Seb's heroic valgrinding :) svn path=/trunk/; revision=2184
* Implement write support for the ObexFTP backend (#519071).Cosimo Cecchi2009-01-282-3/+350
| | | | | | | | | | | | | | 2009-01-28 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendobexftp.c: (_invalidate_cache_helper), (do_mount), (push_transfer_started_cb), (push_transfer_completed_cb), (push_transfer_progress_cb), (push_data_free), (_push_single_file_helper), (do_push), (do_make_directory), (g_vfs_backend_obexftp_class_init): * daemon/obexftp-marshal.list: Implement write support for the ObexFTP backend (#519071). svn path=/trunk/; revision=2183
* Use g_timeout_add_seconds() instead of g_timeout_add() to save some power.A. Walton2009-01-222-4/+4
| | | | | | | | | | | | 2009-01-21 A. Walton <awalton@gnome.org> * daemon/gvfsdaemon.c (daemon_schedule_exit): * daemon/gvfsjobcreatemonitor.c (create_reply): Use g_timeout_add_seconds() instead of g_timeout_add() to save some power. svn path=/trunk/; revision=2177
* Some devices/systems advertise SMB through zeroconf instead of NetBios,Bastien Nocera2009-01-201-0/+6
| | | | | | | | | | | 2009-01-20 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackenddnssd.c: Some devices/systems advertise SMB through zeroconf instead of NetBios, displays Apple Time Capsules in nautilus (Closes: #568147) svn path=/trunk/; revision=2176
* nail a couple of leaksRyan Lortie2009-01-201-0/+2
| | | | | | | | | 2009-01-20 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: nail a couple of leaks svn path=/trunk/; revision=2175
* don't insta-thaw deletes use a timeout to only call thaw() once per batchRyan Lortie2009-01-122-2/+25
| | | | | | | | | | | 2009-01-12 Ryan Lortie <desrt@desrt.ca> * daemon/trashlib/trashitem.c: don't insta-thaw deletes * daemon/gvfsbackendtrash.c: use a timeout to only call thaw() once per batch of delete method calls. svn path=/trunk/; revision=2167
* don't dist a dav+sd.mount thats hardcoded to /usr/localMatthias Clasen2009-01-121-1/+1
| | | | svn path=/trunk/; revision=2166
* Remove unnecessary GErrorTomas Bzatek2009-01-071-7/+4
| | | | | | | | | | 2009-01-07 Tomas Bzatek <tbzatek@redhat.com> * daemon/gvfsbackendnetwork.c: (recompute_files): Remove unnecessary GError svn path=/trunk/; revision=2163
* SMB browsing authentication support (#524485) Make smb-browse backend notTomas Bzatek2009-01-063-43/+398
| | | | | | | | | | | | | | 2009-01-06 Tomas Bzatek <tbzatek@redhat.com> * daemon/gvfsbackendnetwork.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/smb-browse.mount.in: SMB browsing authentication support (#524485) Make smb-browse backend not automounted Mount smb root on network backend automount svn path=/trunk/; revision=2158
* include text of GPL3 by request of Vincent.Ryan Lortie2009-01-051-0/+674
| | | | | | | | | 2009-01-05 Ryan Lortie <desrt@desrt.ca> * daemon/trashlib/COPYING: include text of GPL3 by request of Vincent. svn path=/trunk/; revision=2154
* Bug 565504 - limited number of connections causes commands to failBenjamin Otte2008-12-301-1/+2
| | | | | | | | | | | | | | 2008-12-30 Benjamin Otte <otte@gnome.org> Bug 565504 - limited number of connections causes commands to fail * daemon/gvfsbackendftp.c: (g_vfs_backend_ftp_pop_connection): really fix this bug by not calling g_vfs_job_succeeded() on the error path. svn path=/trunk/; revision=2150
* remove fixme for max connection tracking, by remembering the maxBenjamin Otte2008-12-301-2/+7
| | | | | | | | | | | 2008-12-30 Benjamin Otte <otte@gnome.org> * daemon/gvfsbackendftp.c: (g_vfs_backend_ftp_pop_connection): remove fixme for max connection tracking, by remembering the max connections on the stack. svn path=/trunk/; revision=2149
* introduce ftp_connection_clear_error() for clarityBenjamin Otte2008-12-301-26/+28
| | | | | | | | | | | | | | 2008-12-30 Benjamin Otte <otte@gnome.org> * daemon/gvfsbackendftp.c: (ftp_connection_prepare), (ftp_connection_use), (ftp_connection_ensure_data_connection_epsv), (ftp_connection_ensure_data_connection_pasv), (ftp_connection_try_cd), (g_vfs_backend_ftp_pop_connection), (do_mount), (resolve_symlink), (do_enumerate): introduce ftp_connection_clear_error() for clarity svn path=/trunk/; revision=2148
* Bug 565504 - limited number of connections causes commands to failBenjamin Otte2008-12-301-1/+2
| | | | | | | | | | | | | 2008-12-30 Benjamin Otte <otte@gnome.org> Bug 565504 - limited number of connections causes commands to fail * daemon/gvfsbackendftp.c: (g_vfs_backend_ftp_pop_connection): clear connection error before popping job, so that the error isn't propagated to the job svn path=/trunk/; revision=2147
* set files to mode 700 before deleting to deal with users trashingRyan Lortie2008-12-201-0/+5
| | | | | | | | | | 2008-12-16 Ryan Lortie <desrt@desrt.ca> * daemon/trashlib/trashexpunge.c: set files to mode 700 before deleting to deal with users trashing read-only directories svn path=/trunk/; revision=2146
* add trash::orig-path and trash::deletion-date infoRyan Lortie2008-12-161-6/+21
| | | | | | | | | | 2008-12-16 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c (trash_backend_add_info): add trash::orig-path and trash::deletion-date info svn path=/trunk/; revision=2142
* relicense to LGPLv2+GVFS_1_1_2Ryan Lortie2008-12-152-4/+10
| | | | | | | | | | 2008-12-15 Ryan Lortie <desrt@desrt.ca> * daemon/gvfsbackendtrash.c: * daemon/gvfsbackendtrash.h: relicense to LGPLv2+ svn path=/trunk/; revision=2138
* Fix dist issuesAlexander Larsson2008-12-152-4/+4
| | | | | | | | | | | 2008-12-15 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendtrash.c: * daemon/trashlib/Makefile.am: Fix dist issues svn path=/trunk/; revision=2137
* Fix memory leaks on trash backendRyan Lortie2008-12-125-68/+113
| | | | | | | | | | | | | | | | 2008-12-12 Ryan Lortie <desrt@desrt.ca> Fix memory leaks on trash backend * daemon/trashlib/trashdir.c: * daemon/trashlib/trashexpunge.c: * daemon/trashlib/trashitem.c: * daemon/trashlib/trashwatcher.c: fix memory leaks * daemon/gvfsbackendtrash.c: fix leaks; split enumerate into two functions (one for the root, one for the non-root case) svn path=/trunk/; revision=2135
* Fix successful PASV connections (don't try to apply workaround). (fixesBenjamin Otte2008-12-121-8/+7
| | | | | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_ensure_data_connection_pasv): Fix successful PASV connections (don't try to apply workaround). (fixes #564027) svn path=/trunk/; revision=2134
* Implement pull support on trash backend.Ryan Lortie2008-12-123-23/+105
| | | | | | | | | | | | 2008-12-11 Ryan Lortie <desrt@desrt.ca> Implement pull support on trash backend. * daemon/trashlib/trashitem.[ch]: add support for restoring items * daemon/gvfsbackendtrash.c: implement pull svn path=/trunk/; revision=2133
* New trash:/ backend.Ryan Lortie2008-12-1214-1680/+2311
| | | | | | | | | | | | | | | | 2008-12-11 Ryan Lortie <desrt@desrt.ca> New trash:/ backend. * daemon/trashlib: implementation of the reader side of the fd.o trash specification * daemon/gvfsbackendtrash.[ch]: rewrite based on trashlib * configure.ac: add daemon/trashlib/Makefile to output * daemon/Makefile.am: add trashlib/ subdir and include in trash backend libraries svn path=/trunk/; revision=2132
* require libsoup-gnome, for SoupProxyResolverGNOMEDan Winship2008-12-111-4/+11
| | | | | | | | | | * configure.ac: require libsoup-gnome, for SoupProxyResolverGNOME * daemon/gvfsbackendhttp.c (g_vfs_backend_http_init): add a SoupProxyResolverGNOME to the sessions, to automatically handle proxies. #522985 svn path=/trunk/; revision=2131
* don't leak GSimpleAsyncResults. #551075.Dan Winship2008-12-112-0/+7
| | | | | | | | | | | | | * daemon/soup-input-stream.c (read_async_done) (soup_input_stream_read_async, soup_input_stream_close_async): don't leak GSimpleAsyncResults. #551075. * daemon/gvfsbackendhttp.c (try_open_for_read): set_accumulate to FALSE on the response body to avoid extra allocating+freeing. Patch from Peter Christoffersen, part of #551075. (open_for_read_ready): unref the stream on error. svn path=/trunk/; revision=2130
* Fix icon for the root directory of an obexftp server (Closes: #542687)Bastien Nocera2008-12-091-1/+8
| | | | | | | | | | 2008-12-09 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackendobexftp.c (_query_file_info_helper): Fix icon for the root directory of an obexftp server (Closes: #542687) svn path=/trunk/; revision=2128
* For each camera discovered, create shadow mounts for each one of theBastien Nocera2008-12-091-178/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-09 Bastien Nocera <hadess@hadess.net> * monitor/gphoto2/Makefile.am: * monitor/gphoto2/ggphoto2volumemonitor.c (get_stores_for_camera), (update_cameras): For each camera discovered, create shadow mounts for each one of the top-level storage heads, makes each of the device's stores appear separately * daemon/gvfsbackendgphoto2.c (monitors_emit_internal), (release_device), (split_filename), (file_get_info), (do_mount), (do_open_for_read_real), (do_query_info), (try_query_info), (do_enumerate), (try_enumerate), (do_make_directory), (do_set_display_name), (do_delete), (do_create_internal), (do_replace), (do_append_to), (do_move), (do_create_dir_monitor), (do_create_file_monitor): Remove all the hacks to handle a single storage head differently from multiple storage heads, this makes photo directories detection and the likes work for multiple storage-heads (Closes: #520123) svn path=/trunk/; revision=2126
* Add missing filesGVFS_1_1_1Alexander Larsson2008-12-011-1/+1
| | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * POTFILES.in: Add missing files 2008-12-01 Alexander Larsson <alexl@redhat.com> * daemon/Makefile.am (mount_in_files): Dist dav+sd.mount svn path=/trunk/; revision=2116
* Make mounts/backends have a GIcon not a icon nameAlexander Larsson2008-12-014-21/+116
| | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * common/gmounttracker.[ch]: * daemon/gvfsbackend.[ch]: Make mounts/backends have a GIcon not a icon name * daemon/gvfsbackendsftp.c: Support /etc/favicon.png * daemon/gvfsbackendsmbbrowse.c: Simplify some code with the new GIcon support Patch from David Zeuthen (#557540) svn path=/trunk/; revision=2113
* Added. Added. Added. Added.Alexander Larsson2008-12-016-89/+307
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * common/Makefile.am: * common/gvfsdnssdresolver.c: Added. * common/gvfsdnssdresolver.h: Added. * common/gvfsdnssdutils.c: Added. * common/gvfsdnssdutils.h: Added. * daemon/Makefile.am: * daemon/dav+sd.mount.in: Added. * daemon/dav.mount.in: * daemon/gvfsbackenddav.c: * daemon/gvfsbackenddnssd.c: * daemon/gvfsbackendnetwork.c: For references to dns-sd dav services, use a dav+sd: uri, since this is stable over e.g. port changes and as such work better in e.g. bookmarks. Patch from David Zeuthen (#555436) svn path=/trunk/; revision=2112
* Better name for the has-username case.Alexander Larsson2008-11-181-2/+2
| | | | | | | | | | 2008-11-18 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: Better name for the has-username case. svn path=/trunk/; revision=2099
* If user is specified, add to name too, so we get a unique fuse pathAlexander Larsson2008-11-181-2/+6
| | | | | | | | | | | 2008-11-18 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: If user is specified, add to name too, so we get a unique fuse path svn path=/trunk/; revision=2098
* use g_ascii_is_space() (thanks Wouter)Benjamin Otte2008-11-171-2/+1
| | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_parse_features): use g_ascii_is_space() (thanks Wouter) svn path=/trunk/; revision=2097
* document what the workarounds doBenjamin Otte2008-11-171-0/+7
| | | | | | | * daemon/gvfsbackendftp.c: document what the workarounds do svn path=/trunk/; revision=2096
* If feat before login fails, try it again after login. (fixes bug #556786,Benjamin Otte2008-11-171-3/+16
| | | | | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_prepare), (ftp_connection_use): If feat before login fails, try it again after login. (fixes bug #556786, researched by Oliver Joos) So we're now "better than gftp and filezilla together". Take that gnome-vfs! svn path=/trunk/; revision=2095
* Deal with "\n" vs "\r\n" in FEAT responses. Researched by Oliver Joos.Benjamin Otte2008-11-171-4/+16
| | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_parse_features): Deal with "\n" vs "\r\n" in FEAT responses. Researched by Oliver Joos. svn path=/trunk/; revision=2094
* Be less strict in leading spaces of FEAT reply. Researched by Oliver Joos.Benjamin Otte2008-11-171-1/+6
| | | | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_parse_features): Be less strict in leading spaces of FEAT reply. Researched by Oliver Joos. Apparently common, one affected ftp server visible in bug #556809. svn path=/trunk/; revision=2093
* Do FEAT and OPTS UTF8 ON before login. This mirros behavior of lftp.Benjamin Otte2008-11-171-6/+14
| | | | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_prepare), (ftp_connection_use), (g_vfs_backend_ftp_pop_connection), (do_mount): Do FEAT and OPTS UTF8 ON before login. This mirros behavior of lftp. svn path=/trunk/; revision=2092
* Add workarounds for EPSV/PASV data connection failures. - don't use EPSVBenjamin Otte2008-11-171-7/+47
| | | | | | | | | | | | | * daemon/gvfsbackendftp.c: (ftp_connection_ensure_data_connection_epsv), (ftp_connection_ensure_data_connection_pasv): Add workarounds for EPSV/PASV data connection failures. - don't use EPSV if we get successful return codes but fails to connect. - don't use address in PASV response if we fail to connect to it (use the same address as the command connection is established to). svn path=/trunk/; revision=2091