diff options
Diffstat (limited to 'src/backend/storage/file/copydir.c')
-rw-r--r-- | src/backend/storage/file/copydir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/file/copydir.c b/src/backend/storage/file/copydir.c index 4a10563ef8..f7dc509b50 100644 --- a/src/backend/storage/file/copydir.c +++ b/src/backend/storage/file/copydir.c @@ -56,7 +56,7 @@ copydir(char *fromdir, char *todir, bool recurse) char fromfile[MAXPGPATH]; char tofile[MAXPGPATH]; - if (mkdir(todir, S_IRUSR | S_IWUSR | S_IXUSR) != 0) + if (mkdir(todir, S_IRWXU) != 0) ereport(ERROR, (errcode_for_file_access(), errmsg("could not create directory \"%s\": %m", todir))); |