mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix rename error
This commit is contained in:
parent
fe74bfe4d0
commit
0968bb15bd
2 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue