diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/file_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_utils.c b/src/common/file_utils.c index d952bc8c882..48876061c38 100644 --- a/src/common/file_utils.c +++ b/src/common/file_utils.c @@ -222,7 +222,7 @@ pre_sync_fname(const char *fname, bool isdir, const char *progname) { int fd; - fd = open(fname, O_RDONLY | PG_BINARY, 0); + fd = open(fname, O_RDONLY | PG_BINARY); if (fd < 0) { @@ -283,7 +283,7 @@ fsync_fname(const char *fname, bool isdir, const char *progname) * unsupported operations, e.g. opening a directory under Windows), and * logging others. */ - fd = open(fname, flags, 0); + fd = open(fname, flags); if (fd < 0) { if (errno == EACCES || (isdir && errno == EISDIR)) |