This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix rename failed when rewrite public keys (
#7761
)
tags/v1.21.12.1
Lunny Xiao
GitHub
6 years ago
parent
2594693a46
commit
4328d8e8d7
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
models/ssh_key.go
+ 3
- 1
models/ssh_key.go
View File
@@ -685,12 +685,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