git-annex/Assistant/WebApp/Configurators
Joey Hess f07af03018
Run ssh with -n whenever input is not being piped into it
... to avoid it consuming stdin that it shouldn't.

This fixes git-annex-checkpresentkey --batch remote, which didn't output
results for all keys passed into it.

Other git-annex commands that communicate with a remote over ssh may also
have been consuming stdin that they shouldn't have, which could have
impacted using them in eg, shell scripts. For example, a shell script
reading files from stdin and passing them to git annex drop would be
impacted by this bug, whenever git annex drop ran git-annex-shell
checkpresent, it would consume part/all of the stdin that the shell script
was supposed to consume.

Fixed by adding a ConsumeStdin parameter to Annex.Ssh.sshOptions, which
is used throughout git-annex to run ssh (in order for ssh connection
caching to work). Every call site was checked to see if it used
CreatePipe for stdin, and if not was marked NoConsumeStdin.
2017-02-15 15:08:46 -04:00
..
AWS.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Delete.hs remove xmpp support 2016-11-14 14:53:08 -04:00
Edit.hs annex.autocommit can be configured via git-annex config 2017-02-03 13:58:53 -04:00
Fsck.hs import Data.Default in Common 2015-01-28 16:11:28 -04:00
IA.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Local.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Pairing.hs improve description of password prompting 2016-12-28 16:07:49 -04:00
Preferences.hs webapp: Fix bugs that could result in a relative path such as "." being written to ~/.config/git-annex/autostart 2015-12-02 15:57:30 -04:00
Ssh.hs Run ssh with -n whenever input is not being piped into it 2017-02-15 15:08:46 -04:00
Unused.hs import Data.Default in Common 2015-01-28 16:11:28 -04:00
Upgrade.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
WebDAV.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00