mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Prevent password snooping with ps
This commit is contained in:
parent
a502ab31d1
commit
2a5ea8b9ee
@ -293,6 +293,11 @@ int main(int argc, char ** argv)
|
||||
break;
|
||||
case 'P':
|
||||
password = strdup(optarg);
|
||||
|
||||
/* Prevent password snooping with ps */
|
||||
i = strlen (optarg);
|
||||
memset (optarg, 'X', i);
|
||||
|
||||
break;
|
||||
case 'U':
|
||||
username = strdup(optarg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user