Merge pull request #175 from k-kurematsu/fix_errmsg

Fix misleading error message
This commit is contained in:
Matt Johnston 2022-06-21 17:18:06 +08:00 committed by GitHub
commit 808bc392a0
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;