mirror of
https://github.com/clearml/dropbear
synced 2025-05-15 00:55:58 +00:00
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:
parent
544f28a051
commit
e03abf0d1a
@ -580,7 +580,7 @@ static int checkfileperm(char * filename) {
|
|||||||
if (badperm) {
|
if (badperm) {
|
||||||
if (!ses.authstate.perm_warn) {
|
if (!ses.authstate.perm_warn) {
|
||||||
ses.authstate.perm_warn = 1;
|
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"))
|
TRACE(("leave checkfileperm: failure perms/owner"))
|
||||||
return DROPBEAR_FAILURE;
|
return DROPBEAR_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user