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:
parent
98ff7303e7
commit
350439cb07
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user