Merge pull request #349 from wodny/master

fix: direct mode allows injecting unauthorized filesystem operations
This commit is contained in:
Axel Kittenberger 2016-11-25 15:40:52 +01:00 committed by GitHub
commit b3f46e2462
1 changed files with 2 additions and 2 deletions

View File

@ -109,13 +109,13 @@ direct.action = function(inlet)
error('Refusing to erase your harddisk!')
end
local command = '/bin/mv $1 $2 || /bin/rm -rf $1'
local command = '/bin/mv "$1" "$2" || /bin/rm -rf "$1"'
if
config.delete ~= true and
config.delete ~= 'running'
then
command = '/bin/mv $1 $2'
command = '/bin/mv "$1" "$2"'
end
spawnShell(