diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-05 06:38:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-05 06:38:59 -0700 |
commit | b897159ece19148faf414aec5fb6b7baac0fa301 (patch) | |
tree | d22a8d1dcc26deb7f33424fe6875079c6bc28627 /sysif.h | |
parent | 7de3d60457b9746b31781522be6ea9e0b1438a86 (diff) | |
download | txr-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |