1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-17 21:18:00 +02:00

Fix bug in pseek implementation

This commit is contained in:
Konstantin Knizhnik 2019-04-24 22:05:58 +03:00
parent 98ff7303e7
commit 350439cb07

View File

@ -53,7 +53,7 @@ static bool fio_is_remote_fd(int fd)
#ifdef WIN32
static ssize_t pread(int fd, void* buf, size_t size, off_t off)
{
off_t rc = lseek(fd, SEEK_SET, off);
off_t rc = lseek(fd, off, SEEK_SET);
if (rc != off)
return -1;
return read(fd, buf, size);