]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.util
util: Drop cmd_clean_environment function
[people/stevee/network.git] / src / functions / functions.util
index 80354f4d3778ae63c5a1f0f78e25a551b30f9571..018276cc73075bcce24ab2288808fd271bf00f17 100644 (file)
@@ -513,19 +513,6 @@ cmd_not_implemented() {
        assert false "not implemented"
 }
 
-# Runs a command in a clean environment so that no confidential information
-# is leaked to any untrusted commands.
-cmd_clean_environment() {
-       local cmd=$@
-
-       log DEBUG "Running command in a clean environment: ${cmd}"
-       env -i -- ${cmd}
-       local ret=${?}
-
-       log DEBUG "Returned with code '${ret}'"
-       return ${ret}
-}
-
 # Executes the given command in background
 cmd_background() {
        cmd_quiet $@ &