Content-Length: 279441 | pFad | http://github.com/postgrespro/postgres/commit/5daa50f962bd06e49af690efc2a8a27fdd37fb7d
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d40d827 commit 5daa50fCopy full SHA for 5daa50f
src/bin/pg_resetwal/pg_resetwal.c
@@ -345,17 +345,17 @@ main(int argc, char *argv[])
345
346
get_restricted_token();
347
348
- if (chdir(DataDir) < 0)
349
- pg_fatal("could not change directory to \"%s\": %m",
350
- DataDir);
351
-
352
/* Set mask based on PGDATA permissions */
353
if (!GetDataDirectoryCreatePerm(DataDir))
354
pg_fatal("could not read permissions of directory \"%s\": %m",
355
DataDir);
356
357
umask(pg_mode_mask);
358
+ if (chdir(DataDir) < 0)
+ pg_fatal("could not change directory to \"%s\": %m",
+ DataDir);
+
359
/* Check that data directory matches our server version */
360
CheckDataVersion();
361
Fetched URL: http://github.com/postgrespro/postgres/commit/5daa50f962bd06e49af690efc2a8a27fdd37fb7d
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments