projects
/
grml-shlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added tag 1.02.11 for changeset 2012fa75db2414baff94dd39e3c414e22ffee341
[grml-shlib.git]
/
sh-lib
diff --git
a/sh-lib
b/sh-lib
index
9330a5b
..
85d3c56
100644
(file)
--- a/
sh-lib
+++ b/
sh-lib
@@
-177,6
+177,10
@@
function warnLog
#
###
#
###
+##
+# ATTENTION... THIS FUNCTINOS IS A BIG SECURITY HOLE
+# this function will be changed in future release
+##
# i don't want to write exit status controle stuff every time
function execute
{
# i don't want to write exit status controle stuff every time
function execute
{
@@
-186,6
+190,7
@@
function execute
local ret_=''
local ret_=''
+ # NOT A GOOD IDEA
eval "$to_exec_"
ret_=$?
eval "$to_exec_"
ret_=$?
@@
-246,7
+251,7
@@
function isNotExistent
if [ -e "$file_to_test_" ]; then
if [ -z "$message_" ]; then
if [ -e "$file_to_test_" ]; then
if [ -z "$message_" ]; then
- $error_function_ "file does al
l
ready exist \"$file_to_test_\"" 67
+ $error_function_ "file does already exist \"$file_to_test_\"" 67
else
$error_function_ "$message_"
fi
else
$error_function_ "$message_"
fi
@@
-618,9
+623,10
@@
function _touchService
function _createServiceFunctions
{
function _createServiceFunctions
{
- for i in "start" "stop" "restart" "reload"
"forcereload"
; do
+ for i in "start" "stop" "restart" "reload"; do
eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
done
eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
done
+ eval "function forceReloadService { _touchService force-reload \"\$1\" \"\$2\" \"\$3\"; }"
}
_createServiceFunctions
# }}}
}
_createServiceFunctions
# }}}