mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 09:24:07 -05:00
Mirror fix on #352
This commit is contained in:
parent
e527c9b330
commit
9d5c0c80a4
1 changed files with 2 additions and 3 deletions
|
@ -161,9 +161,8 @@ func saveAuthorizedKeyFile(key *PublicKey) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if finfo.Mode().Perm() > 0600 {
|
if finfo.Mode().Perm() > 0600 {
|
||||||
log.Error(3, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
|
log.Error(4, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
|
||||||
err = f.Chmod(0600)
|
if err = f.Chmod(0600); err != nil {
|
||||||
if err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue