summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exec/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 02942b3f..fa04c771 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -679,6 +679,8 @@ prepare (file_t file, struct execdata *e)
e->stream.__mode.__read = 1;
e->stream.__userbuf = 1;
e->stream.__room_funcs.__input = input_room;
+ /* This never gets called, but fseek returns ESPIPE if it's null. */
+ e->stream.__io_funcs.seek = __stdio_seek;
e->stream.__io_funcs.close = close_exec_stream;
e->stream.__cookie = e;
e->stream.__seen = 1;