summaryrefslogtreecommitdiff
path: root/daemon
Commit message (Collapse)AuthorAgeFilesLines
* Don't leak dbus messagesAlexander Larsson2011-04-1527-11/+55
| | | | | We're missing a lot of dbus_message_unref after sending messages, add them.
* Fix threadsafety of closing channelsAlexander Larsson2011-04-151-30/+18
| | | | | | | | | | | There is a race in g_vfs_job_close_read_finalize vs command_read_cb where if these run in different threads (the command_read_cb in the main thread and the close in another thread), such as in the smb case then we may free the channel early. We fix this by having the command reading propely ref the channel and add a cancellable that allows us to cancel the command reading when the channel is closed.
* afc: Use a better display name for jailbroken device accessMartin Szulecki2011-04-081-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=614554
* afc: Fix renaming files moving them to the root dirBastien Nocera2011-03-271-7/+15
| | | | | | | We were moving and renaming files, instead of just renaming them, as the display_name wasn't properly rooted to the existing directory. https://bugzilla.gnome.org/show_bug.cgi?id=638191
* smb: Add support for default locationTomas Bzatek2011-03-181-2/+11
| | | | | | | | | This is actually a workaround for inacessible root of the share. By setting default location to a user-specified path Nautilus will go to this folder by default, leaving errors from inaccessible root behind. https://bugzilla.gnome.org/show_bug.cgi?id=586129
* Cleanups and fixes for compiler warningsKjartan Maraas2011-03-177-16/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641856
* archive: Propagate entry index as inode no. for filesTomas Bzatek2011-03-171-3/+11
| | | | | | | | | | | | | | | | | This is the first step in making extraction faster. Some GIO-based file managers like Nautilus sort files by inode number and making copy/extraction faster (more linear read on disk, linear read from archive). For the archiving backend, let's give each file a number corresponding with the position the file is stored in the archive. We can't use native inode number stored in some types of archives as long as there are no guarantees it reflects actual position in the file. This change will have no effect until we make do_open_for_read() not to close archive after reading and continue from the last position. I'm afraid this concept would conflict with multiple accesses at one time though.
* archive: Skip leading "./" from pathnames if presentTomas Bzatek2011-03-171-3/+13
| | | | Happens with some archive types, such as rpm (libarchive 2.8.4).
* build: Don't link http backend with SoupOutputStreamRyan Brown2011-03-161-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=631483
* archive: Prevent assertion failure on duplicate mountTomas Bzatek2011-03-161-7/+19
| | | | | | | This will fix an abort when archive is to be mounted for the second time: ERROR:gvfsbackendarchive.c:240:g_vfs_backend_archive_finalize: assertion failed: (archive->file == NULL) https://bugzilla.redhat.com/show_bug.cgi?id=645630
* smb: Catch invalid argument type when setting mtimeBenjamin Otte2011-01-241-0/+9
|
* sftp: Catch invalid argument type for chmod commandBenjamin Otte2011-01-241-0/+9
|
* ftp: Implement chmodLawrence Rust2011-01-241-0/+91
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=416221
* ftp: Parse mode, user and group for unix listingsLawrence Rust2011-01-241-4/+110
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=416221
* ftp: Parse SITE HELP output to detect chmod supportBenjamin Otte2011-01-232-1/+59
| | | | | | | Support for it will come in later patches. The patch also detects chgrp support, but we're not intending to use it yet.
* afc: Add support for House Arrest protocolBastien Nocera2010-12-171-139/+1183
| | | | | | To access the Documents/ folder within applications. https://bugzilla.gnome.org/show_bug.cgi?id=636132
* ftp: Detect TLS and SSL supportBenjamin Otte2010-12-082-1/+5
|
* ftp: Fix refcounting of addresses when connectingBenjamin Otte2010-12-081-0/+2
| | | | | | In error cases, we would get the refcounting wrong, which would lead to a warning when finalizing the backend, because we carried around an invalid pointer to an unreffed address for the whole time.
* obex: Move variables into #if USE_HALBenjamin Otte2010-12-071-3/+5
|
* Fix distcheckTomas Bzatek2010-11-121-2/+3
|
* Remove last traces of GConfTomas Bzatek2010-11-121-15/+6
|
* Port daemons to GSettingsTomas Bzatek2010-11-123-161/+74
|
* Add GSettings schemasTomas Bzatek2010-11-126-1/+89
|
* sftp: Close pty master in child processTomas Bzatek2010-11-121-0/+1
| | | | Prevent fd leakage and possible selinux alert.
* sftp: fix poll() timeout.Andreas Henriksson2010-10-041-1/+1
| | | | | | | | | | | | When switching from select() to poll() in commit "sftp: Use poll() to cope with openssh-5.6 changes" (c6be45c8934) the difference in seconds vs milliseconds for select/poll timeout argument was missed. SFTP_READ_TIMEOUT is defined in seconds, so multiply it with 1000 when using it with poll(). https://bugzilla.gnome.org/show_bug.cgi?id=631169
* sftp: Use poll() to cope with openssh-5.6 changesTomas Bzatek2010-09-271-12/+10
| | | | | Patch by Otto Allmendinger See bug 629184 for details.
* Move GConf initialization from backend constructorTomas Bzatek2010-09-082-45/+45
| | | | Solve the deadlock described in bug 628889
* afc: Add support for photo thumbnails on iOS4Bastien Nocera2010-08-171-16/+127
| | | | | | | And iOS2. This also adds support for preview icon for movies captured on the devices themselves. https://bugzilla.gnome.org/show_bug.cgi?id=627193
* Move translator comments just before the translatable stringClaude Paroz2010-08-051-2/+4
| | | | | xgettext only extracts comments in po files if the comment is on the line just before the translatable string.
* Provide more information in the SSH dialog.Marcus Carlson2010-07-011-4/+16
| | | | | | | Adds host and username information when mounting a SSH share, instead of just "Enter password". https://bugzilla.gnome.org/show_bug.cgi?id=621583
* ftp: fix usage of undeclared variable (unix->is_unix)Daniel Macks2010-06-231-1/+1
| | | | | | | | | | | gvfsftpdircache.c: In function 'g_vfs_ftp_dir_cache_funcs_process': gvfsftpdircache.c:589: error: 'unix' undeclared (first use in this function) ...caught when building on Mac OS X. Apparently using "unix" works for some magic reason on gnu/linux and friends. https://bugzilla.gnome.org/show_bug.cgi?id=622159
* AFC: add dialog for password protected devicesNikias Bassen2010-05-301-31/+73
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=618019
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-2731-31/+31
| | | | This makes gvfs build with recent glib again, see bug #619537
* ftp: Parse PWD reply according to RFCBenjamin Otte2010-04-081-19/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=614401
* ftp: Add missing \n to debug messageBenjamin Otte2010-04-081-1/+1
|
* afc: Detect iPad and set correct icon nameMartin Szulecki2010-04-071-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=615039
* Disable x-content-types for jailbroken iDevicesBastien Nocera2010-04-071-6/+9
| | | | | | | | The jailbroken file system access isn't supported by libgpod, so it's useless for us to say that it's a media-player. https://bugzilla.gnome.org/show_bug.cgi?id=614615
* Fix compilation with libimobiledevice 1.0.0Bastien Nocera2010-03-241-1/+6
| | | | | | | AFC_E_INVALID_ARGUMENT was renamed to AFC_E_INVALID_ARG in http://github.com/MattColyer/libiphone/commit/36048ded8efda588a20b5cf284670a984f7cc650 https://bugzilla.gnome.org/show_bug.cgi?id=613588
* g_vfs_backend_afc_open_for_read: only open regular filesNikias Bassen2010-03-151-0/+84
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=612536
* g_vfs_backend_afc_set_info_from_afcinfo: set content type even if matcher is ↵Nikias Bassen2010-03-151-9/+10
| | | | | | NULL https://bugzilla.gnome.org/show_bug.cgi?id=612536
* archive: Use archive_errno() the correct wayBenjamin Otte2010-02-261-7/+16
| | | | | | | | | Previous code was assuming that archive_errno() would report the last error that happened or SUCCESS if none. This is not true, however as the return value of archive_errno() is undefined if no error happened. This patch changes it to only call archive_errno() after errors. https://bugzilla.gnome.org/show_bug.cgi?id=611057
* ftp: CleanupBenjamin Otte2010-02-261-2/+1
| | | | | Closing the data condition works unconditionally, the close function checks itself.
* Bug 610259 – Handle readonly+delete devicesMarcus Meissner2010-02-191-4/+13
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=610259 Signed-off-by: David Zeuthen <davidz@redhat.com>
* ftp: GVfsJobPull: perform any cache lookups before opening data connectionTomas Bzatek2010-02-191-10/+10
| | | | | | | | | After the delete op, cache was invalidated and an attempt was made to retrieve file size in do_pull() while data connection was already opened. This patch only moves all necessary operations before setting up actual data stream for download. Fixes bug 610395
* sftp: retain chosen password save option across mount phasesTomas Bzatek2010-02-191-3/+6
| | | | | | When username changes, we need to respawn the underlying process and go through handle_login() again. We need to save the GPasswordSave value temporarily to have the password actually saved if desired.
* sftp: Cancel all pending reads in reply_stream on unmountTomas Bzatek2010-02-151-3/+35
| | | | Close the active read_reply_async() channel waiting for input from the sftp process.
* ftp: Prefer PASV/PORT to EPSV/EPRT for IPv4Benjamin Otte2010-02-071-3/+3
| | | | | | | | | | | | | As PASV and PORT are older, there's a higher chance that they are supported. As only IPv4 connections can use these commands, IPv6 will still prefer EPSV/EPRT. The order of methods now looks like this (assuming EPSV and EPRT are supported): IPv4: PASV EPSV PORT EPRT IPv6: EPSV EPRT PASV Note that PASV for IPv6 will try the returned port and the known remote address since the IP is not reliable (That's the fallback part in IPv4).
* ftp: Require IPv4 connections for PASV/PORT commandsBenjamin Otte2010-02-071-7/+39
|
* ftp: put check if a method is supported into its own functionBenjamin Otte2010-02-071-4/+13
|
* ftp: Name the struct used for selecting the data connection methodBenjamin Otte2010-02-071-4/+6
|