commit 9cee4a4a3c29e625305ace51996798fcb572f77c Author: Ondrej Holy Date: 2013-11-15 Update NEWS for 1.19.2 release M NEWS commit 26163e67d5b31812c58ca661f57a8ab17b0d197b Author: Ross Lagerwall Date: 2013-10-26 sftp: Implement GFileCreateFlags and improve permission handling Set the file permissions to 0600 when G_FILE_CREATE_PRIVATE is specified and the file does not exist or G_FILE_CREATE_REPLACE_DESTINATION is specified. Otherwise, set the file permissions and ownership to the permissions and ownership of the existing file only if it is a regular file (i.e. don't set the permissions to 777 because the existing destination is actually is a symlink). Otherwise, use the default file permissions by not setting any file permissions. If G_FILE_CREATE_REPLACE_DESTINATION is specified or the destination is a regular file, write to a tempfile and rename; otherwise, replace by truncating the destination. https://bugzilla.gnome.org/show_bug.cgi?id=710906 M daemon/gvfsbackendsftp.c commit 936708b2d947917be5aed3de0b0de85ded2d3283 Author: Ross Lagerwall Date: 2013-11-07 sftp: Fix handling of multiple reads of the packet length In certain cases, reading the packet length may take more than one call. Make this work by calculating the offset into the reply_size correctly. https://bugzilla.gnome.org/show_bug.cgi?id=532951 M daemon/gvfsbackendsftp.c commit ff870666620b48f9563d7c587b56ed06c349a96c Author: Ross Lagerwall Date: 2013-11-11 archive: Set filesystem size information Set the total size and the amount used to be the total size of the files; set the amount free to 0. https://bugzilla.gnome.org/show_bug.cgi?id=711852 M daemon/gvfsbackendarchive.c commit af1e2dd22047e1f95c245a9ada11958899f20278 Author: Ross Lagerwall Date: 2013-11-11 fuse: Round up the number of blocks that a filesystem has If a filesystem is 4095 bytes, indicate that it uses 1 block rather than 0 blocks. https://bugzilla.gnome.org/show_bug.cgi?id=711855 M client/gvfsfusedaemon.c commit 100dbd9a53efc0dd18a6e0f9dc7083ed584ffbee Author: Ross Lagerwall Date: 2013-11-14 sftp: Add "PermitLocalCommand no" to the OpenSSH commandline Add "PermitLocalCommand no" to the OpenSSH commandline to prevent user-configured commands running and interfering with the sftp session. This is what the OpenSSH sftp client does. https://bugzilla.gnome.org/show_bug.cgi?id=639599 M daemon/gvfsbackendsftp.c commit 66f204655a7ca44a20dea2dae267c456c714c4af Author: Ross Lagerwall Date: 2013-11-11 smb: Report number of bytes used on the filesystem Calculated the number of bytes used by subtracting the size from the number of bytes free, as done with local files. https://bugzilla.gnome.org/show_bug.cgi?id=711838 M daemon/gvfsbackendsmb.c commit e355526f0c6c00bbb7593d02accd4075c4da800f Author: Ross Lagerwall Date: 2013-11-01 daemon: Make progress callbacks work with try methods Before, for each job type that implements progress callbacks, the progress_proxy was being unref'd immediately after the backend's try or run method had run. This means that if the backend had an asynchronous callback which updated the progress, it wouldn't work because the progress_proxy had been removed. Fix this by unrefing the progress_proxy in the GVfsJobProgress class's finalize method. https://bugzilla.gnome.org/show_bug.cgi?id=711247 M daemon/gvfsjobcopy.c M daemon/gvfsjobmove.c M daemon/gvfsjobprogress.c M daemon/gvfsjobpull.c M daemon/gvfsjobpush.c commit 2965194d8479e83dfa6e2ef0b0302aea2762dae3 Author: Ross Lagerwall Date: 2013-11-11 afp: Report number of bytes used on the filesystem Calculate the number of bytes used by subtracting the size from the number of bytes free, as done with local files. https://bugzilla.gnome.org/show_bug.cgi?id=711859 M daemon/gvfsafpvolume.c M daemon/gvfsbackendafp.c commit 7890d2801a7f3998b336452fadc8ad0d01d06e60 Author: Ross Lagerwall Date: 2013-11-05 sftp: Implement push support Implement sftp push support with a sliding window to improve the speed of sftp uploads. The implementation is based on the one from the OpenSSH sftp client. It uses up to 64 outstanding write requests where each request is 32KiB in size which gives a maximum theoretical bandwidth of 2MiB per RTT. This patch results in substantial performance improvments, especially for high-latency links. Some benchmark figures: Old behavior: Copying from local server = 6.1MB/s Copying from local server with 250ms of RTT latency = 0.249MB/s Copying many small files with 250ms of RTT latency = 0.93 files per second New behavior: Copying from local server = 12.2MB/s Copying from local server with 250ms of RTT latency = 6.2MB/s Copying many small files with 250ms of RTT latency = 1.24 files per second OpenSSH sftp client: Copying from local server = 12.8MB/s Copying from local server with 250ms of RTT latency = 6.7MB/s Copying many small files with 250ms of RTT latency = 1.33 files per second https://bugzilla.gnome.org/show_bug.cgi?id=523015 M daemon/gvfsbackendsftp.c commit 9d90065bad034ab17fe10bb8bde9dd0979d7050a Author: Ross Lagerwall Date: 2013-11-08 trash: Fix missing include Caused by 15d5da3f13f9325cab8d32316304ce49d0ff83fb. M daemon/gvfsbackendtrash.c commit 15d5da3f13f9325cab8d32316304ce49d0ff83fb Author: Ross Lagerwall Date: 2013-11-05 trash: Add " (invalid encoding)" to files with invalid encoding https://bugzilla.gnome.org/show_bug.cgi?id=656186 M daemon/gvfsbackendtrash.c commit 990756b22795a13fb38c2a2b038da5758fa679ec Author: Ross Lagerwall Date: 2013-11-05 trash: Support enumerating non-UTF-8 filenames Before when enumerating, display names were set directly from the filenames which can be a problem if the filename is not UTF-8. Instead, don't set the display name at all since it is set correctly via trash_backend_add_info(). https://bugzilla.gnome.org/show_bug.cgi?id=656186 M daemon/gvfsbackendtrash.c commit f25f929a1574a2d874d164895ec6693abb87025b Author: Martin Pitt Date: 2013-11-07 gvfs-test: Refresh MTP record - DCIM/100CANON/IMG_000?.JPG are from test/files/source-gphoto/ - sine.ogg was generated with gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! \ audioresample ! vorbisenc ! oggmux ! filesink location=sine.ogg - Record started with umockdev-record -i /dev/bus/usb/001/017=test/files/mtp_xperia.ioctl /usr/lib/gvfs/gvfsd - Recorded commands (in a different terminal): gvfs-mount 'mtp://[usb:001,017]' gvfs-ls 'mtp://[usb:001,017]/SD-Karte' gvfs-ls 'mtp://[usb:001,017]/SD-Karte/Music' gvfs-ls 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine' gvfs-info 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine' gvfs-info 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine/sine.ogg' gvfs-cat 'mtp://[usb:001,017]/SD-Karte/Music/GStreamer - The Test Sine/sine.ogg' gvfs-cat 'mtp://[usb:001,017]/SD-Karte/hello.txt' gvfs-info 'mtp://[usb:001,017]/SD-Karte/hello.txt' gvfs-info 'mtp://[usb:001,017]/SD-Karte/DCIM/100CANON/IMG_0001.JPG' gvfs-cat 'mtp://[usb:001,017]/SD-Karte/DCIM/100CANON/IMG_0001.JPG' gvfs-mount -u 'mtp://[usb:001,017]' M test/files/mtp_xperia.ioctl.xz M test/gvfs-test commit cadb7298c3e55a54889dbf735765f49accfa9c18 Author: Martin Pitt Date: 2013-11-07 gvfs-test: Robustify MTP test Don't assume a particular odering of listing the top-level directory. For unmount success, verify that our Mount object is gone, instead of our URI not appearing anywhere in the "gvfs-mount -li" output; the latter catches the Volume as well, which we don't expect to go away. M test/gvfs-test commit d76dce9e83ddc033b53d2603b4f4d9f73de1f112 Author: Ross Lagerwall Date: 2013-11-05 programs: Escape string properly Use an unsigned char to avoid implementation-defined behavior of a right shift. Shift by 4 rather than 8 to get the second half of a byte. https://bugzilla.gnome.org/show_bug.cgi?id=711457 M programs/gvfs-info.c commit 74e284c7f1bd3377d27250755b3c2fad5a2aa5c8 Author: Ross Lagerwall Date: 2013-11-05 client: Fix SIGSEGV in fallback copy If the daemon is killed during the fallback copy, it is possible that proxy is NULL which causes a segfault when unrefing it. Use g_clear_object() instead. https://bugzilla.gnome.org/show_bug.cgi?id=711454 M client/gdaemonfile.c commit 5d87cd17ee31cf4fd0ea3a5a620960c925269992 Author: Ross Lagerwall Date: 2013-11-02 sftp: Free error https://bugzilla.gnome.org/show_bug.cgi?id=711292 M daemon/gvfsbackendsftp.c commit 33a9f21d96b8903188614509a405e62b858035a3 Author: Ross Lagerwall Date: 2013-11-04 archive: Set the is_hidden attribute when appropriate https://bugzilla.gnome.org/show_bug.cgi?id=589157 M daemon/gvfsbackendarchive.c commit d3d6f93381b5ea20ee34dd6125c1638527d42ff9 Author: Ondrej Holy Date: 2013-11-01 archive: fix wrong data types Libarchive 3.0 changed public interface to use int64_t uniformly instead of off_t, ino_t, uid_t, gid_t, and dev_t. https://bugzilla.gnome.org/show_bug.cgi?id=670534 M daemon/gvfsbackendarchive.c commit 41266f89894dabcc502d1bf1be65592d23eb24cc Author: Ondrej Holy Date: 2013-11-01 archive: fix segfault when libarchive fails When libarchive fails g_vfs_job_failed is called even as g_vfs_job_succeeded which cause segfault. Set GError instead of g_vfs_job_failed to fix that. https://bugzilla.gnome.org/show_bug.cgi?id=670534 M daemon/gvfsbackendarchive.c commit 39ab8a0f6f673696941a681cf11d2fbbb17bdccf Author: Ondrej Holy Date: 2013-11-01 archive: fix reading files when size not set File size can be unset in the archive therefor is set to zero. This breaks reading file content using fuse. Determine file size by reading data blocks to fix it. https://bugzilla.gnome.org/show_bug.cgi?id=670534 M daemon/gvfsbackendarchive.c commit 9d29cf7acff8d899dc97b8659b1ed1e65cf42d6b Author: Colin Walters Date: 2013-11-03 gvfsproxyvolumemonitordaemon: Turn off debug Now that dbus-activated session services have their stdout/stderr connected to the systemd journal (as of recent dbus), these debug messages now show up by default. The #define DEBUG_ENABLED was apparently turned on by accident in commit 8315eaf84e52c6a00a4905f1f6a73182db9e8015 - we can just turn it off again. (Why is this not just g_debug()? Who knows...) https://bugzilla.gnome.org/show_bug.cgi?id=711365 M monitor/proxy/gvfsproxyvolumemonitordaemon.c commit 7fae7088c21c4f5cdae2327915edd21b1ec4574f Author: Ross Lagerwall Date: 2013-10-16 ftp: Return the correct error code for a failed move operation When the source file does not exist for a move operation, return G_IO_ERROR_NOT_FOUND (as specified by the docs) instead of G_IO_ERROR_FAILED. https://bugzilla.gnome.org/show_bug.cgi?id=710321 M daemon/gvfsbackendftp.c commit 0f5d4be5ceb7fa4df7882b784f8c8e41303b8d8c Author: timeless Date: 2013-11-01 common: Make autorun.inf parsing less strict Make the parsing of autorun.inf less strict by ignoring whitespace around "=". Tweaked by Ross Lagerwall to prevent a match occurring if the part after the "=" contains only whitespace. https://bugzilla.gnome.org/show_bug.cgi?id=595027 M common/gvfsmountinfo.c commit b30678e3f49f04a207870e8a58084fa96cce5a99 Author: Ross Lagerwall Date: 2013-11-01 Update .gitignore files M .gitignore M client/.gitignore M daemon/.gitignore A monitor/afc/.gitignore A monitor/udisks2/.gitignore M programs/.gitignore M test/.gitignore commit 154a57ca5d2c637ac0a02e52554f2607487a15d7 Author: Ross Lagerwall Date: 2013-10-28 recent: Don't mark filesystem as read-only The filesystem should not be marked as read-only since items can be deleted from it. https://bugzilla.gnome.org/show_bug.cgi?id=710993 M daemon/gvfsbackendrecent.c commit 9c11445c38132f6c3ee9d1753f8e8093f7ccca5d Author: Ross Lagerwall Date: 2013-10-27 recent: Prevent spurious monitor notifications Ignore nonexistent files completely to prevent them being repeatedly deleted and then re-added to the list of files. https://bugzilla.gnome.org/show_bug.cgi?id=686135 M daemon/gvfsbackendrecent.c commit 1217b2760b94d299457d542edf142d83527852f7 Author: Daniel Mustieles Date: 2013-10-31 Updated Spanish translation M po/es.po commit 38a0034e98537082054a4f2a2a2c3a898744b5bf Author: Ross Lagerwall Date: 2013-10-26 sftp: Return the correct error code on failed symlink creation If the symlink path already exists, return the correct error code of G_IO_ERROR_EXISTS. https://bugzilla.gnome.org/show_bug.cgi?id=710935 M daemon/gvfsbackendsftp.c commit 0fcf806e76cb944cfa531fc1df83787f5543ea47 Author: Ondrej Holy Date: 2013-10-24 backend: typo fix in signal name M daemon/gvfsbackend.c commit a9c38f1b15e56f2d08d5ffccd0483aee68095c00 Author: Ross Lagerwall Date: 2013-10-28 Don't crash if mount_operation is given as NULL Check for NULL before using the mount_operation given to any of GDaemonFile's methods to prevent a crash due to refing NULL. https://bugzilla.gnome.org/show_bug.cgi?id=710995 M client/gdaemonfile.c commit de923addad07af49a810ad375e124dcb6379da5b Author: Ross Lagerwall Date: 2013-10-31 smb: Unlink file before sending job reply M daemon/gvfsbackendsmb.c commit 6032fe495e7de81cb27438b652644b9bd847641e Author: Ross Lagerwall Date: 2013-10-27 smb: Set error from the errno of the correct operation This prevents errors of the form "Error performing operation: Success" when doing a close after a replace that tries to overwrite a file but fails in the final rename. https://bugzilla.gnome.org/show_bug.cgi?id=603353 M daemon/gvfsbackendsmb.c commit 0cee04b8abcdb25f98a616ed8d785c92f05f7102 Author: Ross Lagerwall Date: 2013-10-01 archive: Handle open failure If gvfs_archive_open fails, libarchive immediately calls gvfs_archive_close which causes a crash due to calling g_object_unref on the NULL stream. https://bugzilla.gnome.org/show_bug.cgi?id=589028 M daemon/gvfsbackendarchive.c commit 20418890e206f0e06e2e98c010733627a144e2fd Author: Ross Lagerwall Date: 2013-10-11 http: Clean up usage of libsoup Use libsoup rather than libsoup-gnome since libsoup-gnome is not required anymore. Bump the libsoup requirement to 2.42 to prevent a build failure with old libsoups (undefined references to soup_session_request_uri). Don't include individual libsoup headers as recommended by the libsoup documentation. https://bugzilla.gnome.org/show_bug.cgi?id=587890 M configure.ac M daemon/gvfsbackendhttp.c M daemon/gvfshttpinputstream.c M daemon/gvfshttpinputstream.h commit f04a331fd84e1de883e52cd768406530465393b7 Author: Daniel Mustieles Date: 2013-10-25 Updated Spanish translation M po/es.po commit b22941edf1b192e31086e16fc41efcf982964576 Author: Ondrej Holy Date: 2013-10-25 Post release version bump M configure.ac