diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/estream.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/estream.c b/src/estream.c index 07a5d97..17d599f 100644 --- a/src/estream.c +++ b/src/estream.c @@ -1560,6 +1560,12 @@ func_w32_seek (void *cookie, gpgrt_off_t *offset, int whence) return -1; } + if (GetFileType (w32_cookie->hd) == FILE_TYPE_PIPE) + { + _set_errno (ESPIPE); + return -1; + } + if (whence == SEEK_SET) { method = FILE_BEGIN; |