Content-Length: 279775 | pFad | https://github.com/postgrespro/postgres/commit/1d863c250461410e60c9ed5d3180f32336f4c3e2
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 7273945 commit 1d863c2Copy full SHA for 1d863c2
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: https://github.com/postgrespro/postgres/commit/1d863c250461410e60c9ed5d3180f32336f4c3e2
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments