summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-05 06:38:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-05 06:38:59 -0700
commitb897159ece19148faf414aec5fb6b7baac0fa301 (patch)
treed22a8d1dcc26deb7f33424fe6875079c6bc28627 /sysif.h
parent7de3d60457b9746b31781522be6ea9e0b1438a86 (diff)
downloadtxr-b897159ece19148faf414aec5fb6b7baac0fa301.tar.gz
txr-b897159ece19148faf414aec5fb6b7baac0fa301.tar.bz2
txr-b897159ece19148faf414aec5fb6b7baac0fa301.zip
New --reexec option.
This helps with setuid hash bang scripting on Mac OS, and other plaforms where the interpreter executed out of a hash bang script runs with orinary privilege, even if marked setuid. * sysif.c (exec_wrap): Static function turns extern. * sysif.h (exec-wrap): Declared. * txr.1: Documented --reexec. Added notes about setuid under Hash Bang Support. * txr.c (help): List --reexec option. (txr_main): Implement --reexec option.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysif.h b/sysif.h
index 093e4152..62712387 100644
--- a/sysif.h
+++ b/sysif.h
@@ -43,6 +43,9 @@ typedef long off_t;
#endif
val getenv_wrap(val name);
+#if HAVE_FORK_STUFF
+val exec_wrap(val file, val args_opt);
+#endif
#if HAVE_SYS_STAT
struct stat;
val stat_to_struct(struct stat st);