mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-02 09:53:24 +02:00
Use POSIX constants for mode_t
This commit is contained in:
parent
57e7bc4d12
commit
4123b76c16
@ -237,12 +237,12 @@ ReceiveFileList(parray* files, PGconn *conn, PGresult *res, int rownum)
|
||||
if (copybuf[156] == '5')
|
||||
{
|
||||
/* Directory */
|
||||
pgfile->mode |= __S_IFDIR;
|
||||
pgfile->mode |= S_IFDIR;
|
||||
}
|
||||
else if (copybuf[156] == '2')
|
||||
{
|
||||
/* Symlink */
|
||||
pgfile->mode |= __S_IFLNK;
|
||||
pgfile->mode |= S_IFLNK;
|
||||
}
|
||||
else
|
||||
elog(ERROR, "Unrecognized link indicator \"%c\"\n",
|
||||
@ -251,7 +251,7 @@ ReceiveFileList(parray* files, PGconn *conn, PGresult *res, int rownum)
|
||||
else
|
||||
{
|
||||
/* regular file */
|
||||
pgfile->mode |= __S_IFREG;
|
||||
pgfile->mode |= S_IFREG;
|
||||
}
|
||||
|
||||
parray_append(files, pgfile);
|
||||
|
Loading…
Reference in New Issue
Block a user