Content-Length: 255428 | pFad | http://github.com/postgrespro/postgres_cluster/commit/5d5aeddabfe0b6b21f556c72a71e0454833d63e5

76 Make sure pg_rewind can't run as root · postgrespro/postgres_cluster@5d5aedd · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/5d5aeddabfe0b6b21f556c72a71e0454833d63e5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy