Nikita Popov
9ec61e43d4
Fix pipe detection and stream position handling
...
There are two related changes here:
1. Also check for S_ISCHR/FILE_TYPE_CHAR when checking for pipes, so
that we detect ttys as well, which are also not seekable.
2. Always set position=-1 (i.e. ftell will return false) when a pipe
is detected. Previously position=0 was sometimes used, depending on
whether we're on Windows/Linux and whether the FD or FILE codepath
was used.
2019-09-05 18:29:15 +02:00
..
2019-09-05 18:29:15 +02:00
2019-02-03 21:03:00 +01:00
2019-06-30 23:55:03 +02:00
2019-02-03 21:03:00 +01:00
2019-08-30 16:07:54 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-06-27 23:25:33 +02:00
2019-03-23 21:09:38 +01:00
2019-08-13 10:22:32 +02:00
2019-02-03 21:03:00 +01:00
2019-04-15 15:00:56 +02:00
2019-03-12 17:35:50 +03:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-03-14 03:01:01 +03:00
2019-08-27 14:34:35 +02:00
2019-02-03 21:03:00 +01:00
2019-07-02 10:10:51 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-04-11 16:52:36 +02:00
2019-04-11 16:52:36 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-07-22 17:17:28 +02:00
2019-06-17 13:14:18 +02:00
2019-06-17 13:14:18 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-07-22 17:17:28 +02:00
2019-02-03 21:03:00 +01:00
2019-08-25 00:02:32 -07:00
2019-09-02 19:02:40 +03:00
2019-04-11 16:52:36 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-03-22 10:29:18 +01:00
2019-03-14 03:01:01 +03:00
2019-06-12 13:17:25 +02:00
2019-03-18 02:11:23 +01:00
2019-04-07 18:32:54 +02:00
2019-02-27 21:20:30 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00