This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
gitea
mirror of
https://github.com/go-gitea/gitea.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
211
Wiki
Activity
Browse Source
fix rename failed when rewrite public keys (
#7761
) (
#7769
)
tags/v1.9.1
Lunny Xiao
4 years ago
parent
1b5908fb6a
commit
aea49d0b92
No account linked to committer's email address
1 changed files
with
3 additions
and
1 deletions
Split View
Show Diff Stats
3
1
models/ssh_key.go
+ 3
- 1
models/ssh_key.go
View File
@@ -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)
}
Write
Preview
Loading…
Cancel
Save