Skip to content
Snippets Groups Projects
Commit a84c30dd authored by Bruce Momjian's avatar Bruce Momjian
Browse files

In initdb.c, move auth warning code into main() from secondary function.

parent c47d261c
No related branches found
No related tags found
No related merge requests found
......@@ -3411,14 +3411,6 @@ initialize_data_directory(void)
make_template0();
make_postgres();
if (do_sync)
perform_fsync();
else
printf(_("\nSync to disk skipped.\nThe data directory might become corrupt if the operating system crashes.\n"));
if (authwarning != NULL)
fprintf(stderr, "%s", authwarning);
}
......@@ -3647,6 +3639,14 @@ main(int argc, char *argv[])
initialize_data_directory();
if (do_sync)
perform_fsync();
else
printf(_("\nSync to disk skipped.\nThe data directory might become corrupt if the operating system crashes.\n"));
if (authwarning != NULL)
fprintf(stderr, "%s", authwarning);
/* Get directory specification used to start this executable */
strlcpy(bin_dir, argv[0], sizeof(bin_dir));
get_parent_directory(bin_dir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment