summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/txr.c b/txr.c
index def35cc9..15d10168 100644
--- a/txr.c
+++ b/txr.c
@@ -789,7 +789,7 @@ int txr_main(int argc, char **argv)
} else if (spec_file) {
if (wcscmp(c_str(spec_file), L"-") != 0) {
open_txr_file(spec_file, &txr_lisp_p, &spec_file_str, &parse_stream);
- simulate_setuid(parse_stream);
+ simulate_setuid_setgid(parse_stream);
} else {
drop_privilege();
spec_file_str = lit("stdin");
@@ -814,7 +814,7 @@ int txr_main(int argc, char **argv)
if (!equal(arg, lit("-"))) {
open_txr_file(arg, &txr_lisp_p, &spec_file_str, &parse_stream);
- simulate_setuid(parse_stream);
+ simulate_setuid_setgid(parse_stream);
} else {
drop_privilege();
spec_file_str = lit("stdin");