mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
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:
parent
732be1b968
commit
ea49700ec1
@ -125,8 +125,8 @@ ipmi_password_file_read(char * filename)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* remove trailing whitespace */
|
||||
l = strcspn(pass, " \r\n\t");
|
||||
/* remove traling <cr><nl><tab> */
|
||||
l = strcspn(pass, "\r\n\t");
|
||||
if (l > 0) {
|
||||
pass[l] = '\0';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user