cmd/age-keygen: make world-readable warning less obscure

Fixes #149
Fixes #75
This commit is contained in:
Filippo Valsorda
2021-01-02 15:47:26 +01:00
committed by Filippo Valsorda
parent 4dee0155ee
commit e665eeafb0

View File

@@ -80,8 +80,7 @@ func main() {
if fi, err := out.Stat(); err == nil {
if fi.Mode().IsRegular() && fi.Mode().Perm()&0004 != 0 {
fmt.Fprintf(os.Stderr, "Warning: writing to a world-readable file.\n"+
"Consider setting the umask to 066 and trying again.\n")
fmt.Fprintf(os.Stderr, "Warning: writing secret key to a world-readable file.\n")
}
}