parent
1b5908fb6a
commit
aea49d0b92
1 changed files with 3 additions and 1 deletions
|
@ -642,12 +642,14 @@ func rewriteAllPublicKeys(e Engine) error {
|
|||
}
|
||||
_, err = t.WriteString(line + "\n")
|
||||
if err != nil {
|
||||
f.Close()
|
||||
return err
|
||||
}
|
||||
}
|
||||
defer f.Close()
|
||||
f.Close()
|
||||
}
|
||||
|
||||
t.Close()
|
||||
return os.Rename(tmpPath, fPath)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue