Skip to content
Snippets Groups Projects
Unverified Commit 890bfb4e authored by Daniel's avatar Daniel
Browse files

FIX: Added newline and flushing to password transfer.

parent 2bca8ab3
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,8 @@ public class Pam implements UserSource {
pb.directory(script.getParentFile());
final Process p = pb.start();
p.getOutputStream().write(password.getBytes());
p.getOutputStream().write('\n');
p.getOutputStream().flush();
return p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment