masaeedu / win-sshfs

Fork of http://code.google.com/p/win-sshfs/
BSD 3-Clause "New" or "Revised" License
26 stars 9 forks source link

Readline library crashes when stdin is piped #18

Closed masaeedu closed 6 years ago

masaeedu commented 6 years ago

Piping the password from stdin when using -x doesn't work because the ReadPassword method in the imported library uses a Console.ReadKey loop. Detect when stdin is redirected and use Console.ReadLine instead.