ID: 331 Passwords provided in file (-f option) truncated on space

Code changed to remove truncation on space since space is valid in a password
This commit is contained in:
Jim Mankovich 2014-08-11 10:36:10 -06:00
parent 732be1b968
commit ea49700ec1

View File

@ -125,7 +125,7 @@ ipmi_password_file_read(char * filename)
return NULL;
}
/* remove trailing whitespace */
/* remove traling <cr><nl><tab> */
l = strcspn(pass, "\r\n\t");
if (l > 0) {
pass[l] = '\0';