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-02-08 23:14:29 +01:00
2018-10-14 12:07:20 -03:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2019-01-14 09:19:30 +01:00
2019-05-29 17:02:36 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2018-10-14 19:45:12 +02:00
2019-03-15 22:55:30 +01:00
2018-10-14 19:46:15 +02:00
2019-03-15 22:55:30 +01:00
2018-02-20 21:53:48 +01:00
2018-10-14 19:45:12 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-15 04:33:09 +02:00
2018-10-14 19:45:12 +02:00
2019-03-15 22:55:30 +01:00
2018-02-20 21:53:48 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2018-10-14 19:45:12 +02:00
2018-02-20 21:53:48 +01:00
2018-10-14 19:45:12 +02:00
2016-04-15 11:57:53 +08:00
2018-02-20 21:53:48 +01:00
2015-06-27 14:28:33 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2016-06-02 12:27:48 +02:00
2019-08-30 11:02:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:33:09 +02:00
2019-06-24 14:08:11 +02:00
2019-06-24 14:08:11 +02:00
2015-03-03 11:43:23 +08:00
2018-10-15 04:33:09 +02:00
2015-09-05 14:34:08 +02:00
2016-06-02 12:27:48 +02:00
2016-03-03 19:22:38 +01:00
2016-03-03 19:22:38 +01:00
2015-07-07 19:21:02 +08:00
2015-08-14 17:05:31 +02:00
2017-09-05 16:23:32 +02:00
2018-10-14 19:45:12 +02:00
2019-03-15 22:55:30 +01:00
2018-02-20 21:53:48 +01:00
2019-06-14 12:55:00 +02:00
2019-06-14 12:55:00 +02:00
2018-02-20 21:53:48 +01:00
2019-06-14 12:55:00 +02:00
2019-02-20 11:20:40 +01:00
2017-09-05 16:23:32 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2019-03-15 22:55:30 +01:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2016-06-02 12:27:48 +02:00
2016-06-02 12:27:48 +02:00
2018-10-14 19:45:12 +02:00
2019-07-11 15:48:10 +02:00
2019-06-01 23:31:05 +02:00
2019-09-05 18:29:15 +02:00
2019-07-11 15:48:10 +02:00