File: shell-options.patch

package info (click to toggle)
ksh93u%2Bm 1.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 12,620 kB
  • sloc: ansic: 152,777; sh: 34,852; makefile: 30
file content (17 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Disable suid shell scripts and enable system-wide ksh
Author: Nicholas Bamber
Forwarded: not-needed

--- a/src/cmd/ksh93/SHOPT.sh
+++ b/src/cmd/ksh93/SHOPT.sh
@@ -36,8 +36,8 @@ SHOPT REGRESS=				# enable __regress__ builtin and instrumented intercepts for t
 SHOPT REMOTE=				# enable --rc if running as a remote shell
 SHOPT SPAWN=				# use spawnveg for fork/exec
 SHOPT STATS=1				# add .sh.stats variable
-SHOPT SUID_EXEC=1			# allow (safe) SUID/SGID shell scripts
-SHOPT SYSRC=				# attempt . /etc/ksh.kshrc if interactive
+SHOPT SUID_EXEC=0			# allow (safe) SUID/SGID shell scripts
+SHOPT SYSRC=1				# attempt . /etc/ksh.kshrc if interactive
 SHOPT TEST_L=				# add 'test -l' as an alias for 'test -L'
 SHOPT TIMEOUT=				# number of seconds for shell timeout
 SHOPT VSH=1				# vi edit mode