Patch to implement optional interactive password input