Use POSIX constants for mode_t

This commit is contained in:
Arthur Zakirov
2017-10-11 16:43:09 +03:00
parent 57e7bc4d12
commit 4123b76c16
+3 -3
View File
@@ -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);