summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-10-08 09:27:02 +0200
committerAlexander Larsson <alexl@redhat.com>2013-10-08 09:31:05 +0200
commitfb56d6dd8699ae73c732fd30dd8bb2034105ecb8 (patch)
tree9d507d75ea5c4148ede128ecc55ae93f232f5295
parent5fb056ffea07aa415a676bc22d4b02e7d3fc482a (diff)
downloadgvfs-fb56d6dd8699ae73c732fd30dd8bb2034105ecb8.tar.gz
mtp: Allow seek past end of file
https://bugzilla.gnome.org/show_bug.cgi?id=709432
-rw-r--r--daemon/gvfsbackendmtp.c2
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"));