Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d5aedd

Browse files
committed
Make sure pg_rewind can't run as root
Previously a warning was printed, but the tool actually kept runningeven when running as root. This is something we definitely want toprevent, but since this means a behavior change, not backpatching.Author: Michael Paquier
1 parenta65e17b commit5d5aedd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/pg_rewind/pg_rewind.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ main(int argc, char **argv)
208208
fprintf(stderr,_("cannot be executed by \"root\"\n"));
209209
fprintf(stderr,_("You must run %s as the PostgreSQL superuser.\n"),
210210
progname);
211+
exit(1);
211212
}
212213
#endif
213214

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp