Commit 0594b2b2 authored by Mike Hibler's avatar Mike Hibler
Browse files

Don't try to set the password for 'toor' if it doesn't exist.

parent a6f62695
......@@ -1016,7 +1016,9 @@ sub os_modpasswd($$)
warn "*** WARNING: resetting password for $login.\n";
return -1;
}
# don't try to reset 'toor' if it doesn't exist
if ($login eq "root" &&
system("grep -q toor $TMPASSWD") == 0 &&
system("$USERMOD -p '$pswd' toor") != 0) {
warn "*** WARNING: resetting password for toor.\n";
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment