Commit caa977bf caa977bf1591e9e56b91ea2cfbc6f5fe55207f99 by Sergey Poznyakoff

Open stdio stream with MU_STREAM_SEEKABLE bit set.

1 parent ec07a37e
......@@ -114,7 +114,7 @@ main (int argc, char *argv[])
C (address_createv (&to, (const char **) av, -1));
}
C (stdio_stream_create (&in, stdin, 0));
C (stdio_stream_create (&in, stdin, MU_STREAM_SEEKABLE));
C (stream_open (in));
C (message_create (&msg, NULL));
C (message_set_stream (msg, in, NULL));
......
......@@ -166,7 +166,7 @@ main (int argc, char **argv)
}
}
if ((status = stdio_stream_create (&in, stdin, 0)))
if ((status = stdio_stream_create (&in, stdin, MU_STREAM_SEEKABLE)))
{
fprintf (stderr, _("Failed: %s\n"), mu_errstring (status));
goto end;
......