Fix misleading error message

As per the message, even if I deleted the write permission(chmod -007), but an error occurred.
It's a source of confusion, so fix the message.
This commit is contained in:
k-kurematsu 2022-06-21 17:58:12 +09:00 committed by GitHub
parent 544f28a051
commit e03abf0d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,7 +580,7 @@ static int checkfileperm(char * filename) {
if (badperm) {
if (!ses.authstate.perm_warn) {
ses.authstate.perm_warn = 1;
dropbear_log(LOG_INFO, "%s must be owned by user or root, and not writable by others", filename);
dropbear_log(LOG_INFO, "%s must be owned by user or root, and not writable by group or others", filename);
}
TRACE(("leave checkfileperm: failure perms/owner"))
return DROPBEAR_FAILURE;