Project

General

Profile

« Previous | Next » 

Revision 13310

bugfix: lib/runscripts/util.run: $wrap_fn: $top_script doesn't need to be world-executable for most uses of sudo (only if sudoing to non-root)

View differences:

trunk/lib/runscripts/util.run
76 76
#### utils
77 77

  
78 78
# usage: sudo $wrap_fn fn ...
79
wrap_fn=
80
if log++ is_world_executable "$top_script"; then
81
	wrap_fn="$(esc "$top_script")"
82
fi
79
wrap_fn="$(esc "$top_script")"
80
	# if sudo to non-root and $top_script not world-executable, produces error
83 81

  
84 82
func_override sudo__util_sh
85 83
function sudo() # usage: sudo fn|cmd ... # supports shell functions as well

Also available in: Unified diff