Content-Length: 258212 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a0a8671a61ae05315d32c1fc41969f0bfc8969b6

39 Lower privilege level of programs calling regression_main · postgrespro/postgres_cluster@a0a8671 · GitHub
Skip to content

Commit a0a8671

Browse files
committed
Lower privilege level of programs calling regression_main
On Windows this mean that the regression tests can now safely and successfully run as Administrator, which is useful in situations like Appveyor. Elsewhere it's a no-op. Backpatch to 9.5 - this is harder in earlier branches and not worth the trouble. Discussion: https://postgr.es/m/650b0c29-9578-8571-b1d2-550d7f89f307@2ndQuadrant.com
1 parent d30d27a commit a0a8671

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/regress/pg_regress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,8 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
20812081
progname = get_progname(argv[0]);
20822082
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_regress"));
20832083

2084+
get_restricted_token(progname);
2085+
20842086
atexit(stop_postmaster);
20852087

20862088
#ifndef HAVE_UNIX_SOCKETS

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/a0a8671a61ae05315d32c1fc41969f0bfc8969b6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy