summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-tiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf/io-tiff.c')
-rw-r--r--gdk-pixbuf/io-tiff.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c
index d8b799344b..874a8a73d0 100644
--- a/gdk-pixbuf/io-tiff.c
+++ b/gdk-pixbuf/io-tiff.c
@@ -255,6 +255,13 @@ gdk_pixbuf__tiff_image_load (FILE *f, GError **error)
tiff_push_handlers ();
fd = fileno (f);
+
+ /* On OSF, apparently fseek() works in some on-demand way, so
+ * the fseek gdk_pixbuf_new_from_file() doesn't work here
+ * since we are using the raw file descriptor. So, we call lseek() on the fd
+ * before using it. (#60840)
+ */
+ lseek (fd, 0, SEEK_SET);
tiff = TIFFFdOpen (fd, "libpixbuf-tiff", "r");
if (!tiff || global_error) {