[gvfs] mtp: Allow seek past end of file
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] mtp: Allow seek past end of file
- Date: Tue, 8 Oct 2013 07:51:11 +0000 (UTC)
commit fb56d6dd8699ae73c732fd30dd8bb2034105ecb8
Author: Alexander Larsson <alexl redhat com>
Date: Tue Oct 8 09:27:02 2013 +0200
mtp: Allow seek past end of file
https://bugzilla.gnome.org/show_bug.cgi?id=709432
daemon/gvfsbackendmtp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 10cc852..657c314 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"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]