diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-10-08 09:27:02 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-10-08 09:31:05 +0200 |
commit | fb56d6dd8699ae73c732fd30dd8bb2034105ecb8 (patch) | |
tree | 9d507d75ea5c4148ede128ecc55ae93f232f5295 | |
parent | 5fb056ffea07aa415a676bc22d4b02e7d3fc482a (diff) | |
download | gvfs-fb56d6dd8699ae73c732fd30dd8bb2034105ecb8.tar.gz |
mtp: Allow seek past end of file
https://bugzilla.gnome.org/show_bug.cgi?id=709432
-rw-r--r-- | daemon/gvfsbackendmtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c index 10cc8525..657c314e 100644 --- a/daemon/gvfsbackendmtp.c +++ b/daemon/gvfsbackendmtp.c @@ -1830,7 +1830,7 @@ do_seek_on_read (GVfsBackend *backend, offset += old_offset; } - if (offset > size || offset < 0) { + if (offset < 0) { g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT, _("End of stream")); |