Skip to content

Commit 5d5aedd

Browse files
committed
Make sure pg_rewind can't run as root
Previously a warning was printed, but the tool actually kept running even when running as root. This is something we definitely want to prevent, but since this means a behavior change, not backpatching. Author: Michael Paquier
1 parent a65e17b commit 5d5aedd

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy