mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Security fixes in backup/restore paths
This commit is contained in:
parent
7b405a6396
commit
a801abb5e4
5 changed files with 7 additions and 7 deletions
|
|
@ -56,7 +56,7 @@ else
|
|||
tar_file = "nedge_conf_backup.tar.gz"
|
||||
end
|
||||
|
||||
local output_tar = os_utils.fixPath("/tmp/"..tar_file)
|
||||
local output_tar = os_utils.fixPath(dirs.workingdir.."/"..tar_file)
|
||||
local cmd = string.format("%s -a backup -c %s -d %s > /dev/null", manage_config, output_tar, dirs.workingdir)
|
||||
|
||||
-- Note: we are using os.execute / ntop.dumpBinaryFile as io.popen / print
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue