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