Fix rename error

This commit is contained in:
emanuele-f 2019-04-12 10:43:52 +02:00
parent fe74bfe4d0
commit 0968bb15bd
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ function protos_utils.generateProtosTxt(rules)
if not ntop.exists(backup_file) then
traceError(TRACE_INFO, TRACE_CONSOLE, string.format("Backing up '%s' to '%s'", path, backup_file))
os.rename(fpath, backup_file)
os.rename(path, backup_file)
end
local f = io.open(path, "w")