mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 07:16:17 +00:00
Corrected log message
This commit is contained in:
parent
be7ce72ebe
commit
51abaf788c
|
@ -160,7 +160,7 @@ func saveAuthorizedKeyFile(key *PublicKey) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if finfo.Mode().Perm() > 0600 {
|
if finfo.Mode().Perm() > 0600 {
|
||||||
log.Error("authorized_keys file has unusual permission flags: " + finfo.Mode().Perm() + " - setting to -rw-r--r--")
|
log.Error(3, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
|
||||||
f.Chmod(0600)
|
f.Chmod(0600)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue